@flemo/core 2.3.1 → 2.4.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/engine/__tests__/createSwipeController.declaredSwipe.test.d.ts +1 -0
- package/dist/core/engine/__tests__/createSwipeController.decoratorReplacement.test.d.ts +1 -0
- package/dist/core/engine/riderSwipe.d.ts +28 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +1546 -1481
- package/dist/transition/__tests__/resolveSwipeOptions.test.d.ts +1 -0
- package/dist/transition/resolveSwipeOptions.d.ts +76 -0
- package/dist/transition/swipeSettle.d.ts +32 -12
- package/dist/transition/typing.d.ts +158 -19
- package/dist/transition/variantMotion.d.ts +4 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,18 @@ import { VariantMotion } from '../../transition/variantMotion';
|
|
|
2
2
|
export interface RiderSwipe {
|
|
3
3
|
/** Whether anything is actually being driven. */
|
|
4
4
|
readonly active: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Whether any element this staged has left the document.
|
|
7
|
+
*
|
|
8
|
+
* A gesture stages against the elements that exist when it begins, and a
|
|
9
|
+
* drag's own wake can REPLACE one of them a frame later — a covered screen's
|
|
10
|
+
* dim moves between its container and the layer host as that screen's
|
|
11
|
+
* `<Layer>` slots unmount and re-mount (see resolvePrevDecorator in
|
|
12
|
+
* createSwipeController). The animations stay on the node that left, so the
|
|
13
|
+
* one on screen never moves. Reported for the hook-driven dim; the same wake
|
|
14
|
+
* reaches a pose-only one, which is what this is for.
|
|
15
|
+
*/
|
|
16
|
+
readonly stale: boolean;
|
|
5
17
|
/** Move every rider to this fraction of its travel (0 → 1). */
|
|
6
18
|
scrub: (progress: number) => void;
|
|
7
19
|
/**
|
|
@@ -12,8 +24,14 @@ export interface RiderSwipe {
|
|
|
12
24
|
* pose — the contract the swipe already applies to the screen and the dim.
|
|
13
25
|
* Otherwise they run backwards and the compiled rest rule takes them over
|
|
14
26
|
* again.
|
|
27
|
+
*
|
|
28
|
+
* RESOLVES WHEN THE LANDING HAS LANDED. A caller that commits a navigation
|
|
29
|
+
* off the back of a release has to wait for it: the screens are staged
|
|
30
|
+
* animations now, so committing while they still play removes the screen
|
|
31
|
+
* mid-flight and it vanishes rather than leaving. Device-reported the first
|
|
32
|
+
* time the declarative path shipped without this.
|
|
15
33
|
*/
|
|
16
|
-
settle: (commit: boolean, seconds: number) => void
|
|
34
|
+
settle: (commit: boolean, seconds: number) => Promise<void>;
|
|
17
35
|
}
|
|
18
36
|
export interface RiderMotion {
|
|
19
37
|
readonly element: HTMLElement;
|
|
@@ -24,5 +42,13 @@ export interface RiderMotion {
|
|
|
24
42
|
* nothing to drive, so a gesture over chrome that declares no motion costs
|
|
25
43
|
* nothing.
|
|
26
44
|
*/
|
|
27
|
-
export declare const beginRiderSwipe: (riders: readonly RiderMotion[]
|
|
45
|
+
export declare const beginRiderSwipe: (riders: readonly RiderMotion[], options?: {
|
|
46
|
+
/**
|
|
47
|
+
* The writer staking the landed pose this hands back (see the note in
|
|
48
|
+
* `settle`). A caller whose own cleanup is owner-scoped — the swipe's
|
|
49
|
+
* riding bars are — has to be the one on the lease, or its clear will not
|
|
50
|
+
* release what was written here.
|
|
51
|
+
*/
|
|
52
|
+
writer?: symbol;
|
|
53
|
+
}) => RiderSwipe | null;
|
|
28
54
|
export default beginRiderSwipe;
|
package/dist/index.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ export { default as computeBarRiding, sharedBarsMatch, type BarRidingInput } fro
|
|
|
61
61
|
export { animHoldKey, scheduleAnimHoldRelease, createAnimHoldCoordinator, eagerlyDecodeImages, ANIM_HOLD_RELEASE_BACKSTOP_MS, type AnimHoldInput, type AnimHoldCoordinator } from './screen/animStartAnchor';
|
|
62
62
|
export { detectBlinkEngine, isDesktopBlink, isLegacyAndroidBlink } from './platform/engineProbes';
|
|
63
63
|
export { steadySixtyDesktopProfile } from './platform/steadySixtyCadence';
|
|
64
|
+
export { resolveSwipeOptions, DEFAULT_COMMIT_FRACTION, DEFAULT_COMMIT_VELOCITY, type ResolvedSwipe } from './transition/resolveSwipeOptions';
|
|
65
|
+
export type { SwipeOptions, SwipeStop } from './transition/typing';
|
|
64
66
|
export { swipeSettleSeconds, MIN_SETTLE_SECONDS, type SwipeSettleInput } from './transition/swipeSettle';
|
|
65
67
|
export { default as observeBarHeight } from './screen/observeBarHeight';
|
|
66
68
|
export { default as publishRideBox } from './screen/publishRideBox';
|