@flemo/core 1.6.1 → 1.8.0
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/dist/core/createRouterScope.d.ts +26 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.mjs +398 -230
- package/dist/navigate/__tests__/createStepController.test.d.ts +1 -0
- package/dist/navigate/createStepController.d.ts +20 -0
- package/dist/screen/__tests__/animStartAnchor.test.d.ts +1 -0
- package/dist/screen/__tests__/computeBarRiding.test.d.ts +1 -0
- package/dist/screen/__tests__/observeBarHeight.test.d.ts +1 -0
- package/dist/screen/__tests__/observeViewportScrollHeight.test.d.ts +1 -0
- package/dist/screen/animStartAnchor.d.ts +9 -0
- package/dist/screen/computeBarRiding.d.ts +13 -0
- package/dist/screen/observeBarHeight.d.ts +1 -0
- package/dist/screen/observeViewportScrollHeight.d.ts +1 -0
- package/dist/transition/__tests__/enteringInitialStyle.test.d.ts +1 -0
- package/dist/transition/__tests__/registerTransitionDefinitions.test.d.ts +6 -0
- package/dist/transition/enteringInitialStyle.d.ts +11 -0
- package/dist/transition/registerTransitionDefinitions.d.ts +4 -0
- package/dist/utils/__tests__/buildRoutePath.test.d.ts +1 -0
- package/dist/utils/__tests__/matchesPathname.test.d.ts +1 -0
- package/dist/utils/buildRoutePath.d.ts +5 -0
- package/dist/utils/matchesPathname.d.ts +2 -0
- package/package.json +1 -1
- package/dist/core/engine/barRiding.d.ts +0 -18
- /package/dist/core/{engine/__tests__/barRiding.test.d.ts → __tests__/createRouterScope.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HistoryDriver } from '../history/historyDriver';
|
|
2
|
+
import { HistoryStoreApi } from '../history/store';
|
|
3
|
+
import { NavigateStoreApi } from './store';
|
|
4
|
+
export declare const readStepParams: <P>(state: unknown) => P | null;
|
|
5
|
+
export declare const appendParamsQuery: (pathname: string, params: object) => string;
|
|
6
|
+
export interface StepControllerDeps {
|
|
7
|
+
stores: {
|
|
8
|
+
history: HistoryStoreApi;
|
|
9
|
+
navigate: NavigateStoreApi;
|
|
10
|
+
};
|
|
11
|
+
driver: HistoryDriver;
|
|
12
|
+
markSelfInduced: () => void;
|
|
13
|
+
buildStepPathname: (params: object) => string;
|
|
14
|
+
applyParams: (params: object) => void;
|
|
15
|
+
}
|
|
16
|
+
export default function createStepController(deps: StepControllerDeps): {
|
|
17
|
+
pushStep: (params: object) => Promise<void>;
|
|
18
|
+
replaceStep: (params: object) => Promise<void>;
|
|
19
|
+
popStep: () => Promise<void>;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NavigateStatus } from '../navigate/store';
|
|
2
|
+
export interface AnimHoldInput {
|
|
3
|
+
status: NavigateStatus;
|
|
4
|
+
isTopOrTopPrev: boolean;
|
|
5
|
+
transitionName: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function animHoldKey(input: AnimHoldInput): string | null;
|
|
8
|
+
export declare const ANIM_HOLD_RELEASE_BACKSTOP_MS = 300;
|
|
9
|
+
export declare function scheduleAnimHoldRelease(release: () => void): () => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NavigateStatus } from '../navigate/store';
|
|
2
|
+
import { SharedBarPresenceLike } from '../core/engine/createSwipeController';
|
|
3
|
+
export interface BarRidingInput {
|
|
4
|
+
status: NavigateStatus;
|
|
5
|
+
isTopOrTopPrev: boolean;
|
|
6
|
+
hasTopBar: boolean;
|
|
7
|
+
hasNavBar: boolean;
|
|
8
|
+
partnerBars: SharedBarPresenceLike | undefined;
|
|
9
|
+
}
|
|
10
|
+
export default function computeBarRiding(input: BarRidingInput): {
|
|
11
|
+
app: boolean;
|
|
12
|
+
nav: boolean;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function observeBarHeight(element: HTMLElement, onHeight: (height: number) => void): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function observeViewportScrollHeight(onChange: (viewportScrollHeight: number, changedViewportScrollHeight: number) => void): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NavigateStatus } from '../navigate/store';
|
|
2
|
+
import { InitialTarget } from './cssTypes';
|
|
3
|
+
export interface EnteringInitialStyleInput {
|
|
4
|
+
initial: InitialTarget;
|
|
5
|
+
isActive: boolean;
|
|
6
|
+
status: NavigateStatus;
|
|
7
|
+
}
|
|
8
|
+
export default function enteringInitialStyle(input: EnteringInitialStyleInput): {
|
|
9
|
+
transform?: string;
|
|
10
|
+
opacity?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Transition } from './typing';
|
|
2
|
+
import { Decorator } from './decorator/typing';
|
|
3
|
+
import { PartTransition } from './partTransition/typing';
|
|
4
|
+
export default function registerTransitionDefinitions(transitions: Transition[], decorators: Decorator[], partTransitions?: PartTransition[]): () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { History } from '../../history/store';
|
|
2
|
-
import { NavigateStatus } from '../../navigate/store';
|
|
3
|
-
import { SharedBarPresenceLike } from './createSwipeController';
|
|
4
|
-
export interface BarRidingInput {
|
|
5
|
-
topBar: HTMLElement | null;
|
|
6
|
-
navBar: HTMLElement | null;
|
|
7
|
-
isTopOrTopPrev: boolean;
|
|
8
|
-
isActive: boolean;
|
|
9
|
-
index: number;
|
|
10
|
-
hasTopBar: boolean;
|
|
11
|
-
hasNavBar: boolean;
|
|
12
|
-
getStatus: () => NavigateStatus;
|
|
13
|
-
getHistories: () => History[];
|
|
14
|
-
getSharedBars: () => Record<string, SharedBarPresenceLike | undefined>;
|
|
15
|
-
subscribeStatus: (listener: () => void) => () => void;
|
|
16
|
-
subscribeSharedBars: (listener: () => void) => () => void;
|
|
17
|
-
}
|
|
18
|
-
export default function driveBarRiding(input: BarRidingInput): () => void;
|
/package/dist/core/{engine/__tests__/barRiding.test.d.ts → __tests__/createRouterScope.test.d.ts}
RENAMED
|
File without changes
|