@flemo/core 1.28.1 → 1.29.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.
@@ -11,9 +11,9 @@ export declare const targetToDecls: (target: TransitionVariantValue["value"] | I
11
11
  export declare const easingToCss: (ease: AnimationOptions["ease"] | undefined) => string;
12
12
  export declare const softenFrontLoadedEasing: (easingCss: string, durationS: number) => string | null;
13
13
  export declare const animationName: (scope: "screen" | "decorator" | "part", name: string, variant: TransitionVariant) => string;
14
- export declare const HEAD_ANIMATION_SUFFIXES: readonly ["-lpm", "-deskhead", "-lpmcreep"];
14
+ export declare const HEAD_ANIMATION_SUFFIXES: readonly ["-gov", "-deskhead", "-govcreep"];
15
15
  export declare const matchesFlightAnimationName: (eventName: string, expectedName: string) => boolean;
16
16
  export declare const compileTransitionStyles: (transitions: Iterable<Transition>, decorators: Iterable<Decorator>, partTransitions?: Iterable<PartTransition>) => string;
17
17
  export declare const variantHasAnimation: (transitionLike: Pick<Transition, "initial" | "variants">, variant: TransitionVariant) => boolean;
18
18
  export declare const DESKTOP_HEAD_MS: Record<string, number>;
19
- export declare const LPM_HEAD_MS: Record<string, number>;
19
+ export declare const GOVERNED_HEAD_MS: Record<string, number>;
@@ -1,9 +1,11 @@
1
1
  export declare const MIN_SETTLE_SECONDS = 0.12;
2
+ export declare const MIN_REVERSAL_SECONDS = 0.28;
2
3
  export interface SwipeSettleInput {
3
4
  remainingPx: number;
4
5
  spanPx: number;
5
6
  velocityPxPerSecond: number;
7
+ reversing?: boolean;
6
8
  authoredSeconds: number;
7
9
  minSeconds?: number;
8
10
  }
9
- export declare const swipeSettleSeconds: ({ remainingPx, spanPx, velocityPxPerSecond, authoredSeconds, minSeconds }: SwipeSettleInput) => number;
11
+ export declare const swipeSettleSeconds: ({ remainingPx, spanPx, velocityPxPerSecond, authoredSeconds, reversing, minSeconds }: SwipeSettleInput) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemo/core",
3
- "version": "1.28.1",
3
+ "version": "1.29.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",
@@ -45,8 +45,8 @@
45
45
  "vite": "^8.2.1",
46
46
  "vite-plugin-dts": "^5.0.3",
47
47
  "vitest": "^4.1.10",
48
- "@flemo/eslint-config": "0.0.0",
49
- "@flemo/tsconfig": "0.0.0"
48
+ "@flemo/tsconfig": "0.0.0",
49
+ "@flemo/eslint-config": "0.0.0"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- export declare const lowPowerCadenceActive: () => boolean;
2
- export declare const governedCompiledActive: () => boolean;
3
- export declare const lowPowerFrameIntervalMs: () => number | null;
4
- export declare const resetLowPowerCadenceForTests: () => void;
5
- export declare const probeLowPowerCadence: (attempt?: number) => void;
6
- export declare const armLowPowerCadenceLifecycle: () => void;