@flemo/core 1.21.0 → 1.22.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.
@@ -8,4 +8,6 @@ export interface ScreenFreezeInput {
8
8
  dragStatus: "IDLE" | "PENDING";
9
9
  replaceTransitionStatus: "IDLE" | "PENDING";
10
10
  }
11
+ export type ScreenFreezeMode = "live" | "deferred" | "immediate";
12
+ export declare function computeScreenFreezeMode(input: ScreenFreezeInput): ScreenFreezeMode;
11
13
  export default function computeScreenFreeze(input: ScreenFreezeInput): boolean;
@@ -30,6 +30,7 @@ export interface SwipeInfo {
30
30
  export type SwipeAnimate = (target: HTMLElement, value: TransitionTarget, options?: AnimationOptions) => Promise<void>;
31
31
  export type TransitionOptions = {
32
32
  decoratorName?: DecoratorName;
33
+ driver?: "native" | "player";
33
34
  swipeDirection: "x" | "y";
34
35
  onSwipeStart: (event: PointerEvent, info: SwipeInfo, options: {
35
36
  animate: SwipeAnimate;
@@ -51,6 +52,7 @@ export type TransitionOptions = {
51
52
  }) => Promise<boolean>;
52
53
  } | {
53
54
  decoratorName?: DecoratorName;
55
+ driver?: "native" | "player";
54
56
  swipeDirection?: never;
55
57
  };
56
58
  export interface BaseTransition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemo/core",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "description": "Framework-agnostic primitives for flemo: history, navigation, transitions, task manager.",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.mjs",