@flemo/core 1.28.0 → 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.
- package/dist/core/engine/governedCompiled.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +875 -948
- package/dist/transition/__tests__/swipeSettle.test.d.ts +1 -0
- package/dist/transition/animateInline.d.ts +1 -0
- package/dist/transition/compileTransitionStyles.d.ts +2 -2
- package/dist/transition/swipeSettle.d.ts +11 -0
- package/package.json +3 -3
- package/dist/core/engine/lowPowerCadence.d.ts +0 -6
- package/dist/transition/settleScrub.d.ts +0 -19
- /package/dist/core/engine/__tests__/{lowPowerCadence.test.d.ts → createSwipeController.releaseClock.test.d.ts} +0 -0
- /package/dist/{transition/__tests__/settleScrub.test.d.ts → core/engine/__tests__/createSwipeController.revealHold.test.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SwipeAnimate } from './typing';
|
|
2
2
|
export declare const trackInlineWrite: (el: HTMLElement, property: string, owner?: symbol) => void;
|
|
3
|
+
export declare const concludeInlineSettle: (el: HTMLElement, owner?: symbol) => void;
|
|
3
4
|
export declare const clearInlineAnimation: (el: HTMLElement, properties?: string[], owner?: symbol) => void;
|
|
4
5
|
declare const animateInline: (target: HTMLElement, value: Parameters<SwipeAnimate>[1], options?: NonNullable<Parameters<SwipeAnimate>[2]>, writer?: symbol) => Promise<void>;
|
|
5
6
|
export default animateInline;
|
|
@@ -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 ["-
|
|
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
|
|
19
|
+
export declare const GOVERNED_HEAD_MS: Record<string, number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const MIN_SETTLE_SECONDS = 0.12;
|
|
2
|
+
export declare const MIN_REVERSAL_SECONDS = 0.28;
|
|
3
|
+
export interface SwipeSettleInput {
|
|
4
|
+
remainingPx: number;
|
|
5
|
+
spanPx: number;
|
|
6
|
+
velocityPxPerSecond: number;
|
|
7
|
+
reversing?: boolean;
|
|
8
|
+
authoredSeconds: number;
|
|
9
|
+
minSeconds?: number;
|
|
10
|
+
}
|
|
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.
|
|
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/
|
|
49
|
-
"@flemo/
|
|
48
|
+
"@flemo/tsconfig": "0.0.0",
|
|
49
|
+
"@flemo/eslint-config": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
@@ -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;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CssDecl } from './compileTransitionStyles';
|
|
2
|
-
export interface SettleScheduler {
|
|
3
|
-
request: (callback: (time: number) => void) => number;
|
|
4
|
-
cancel: (handle: number) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface SettleTiming {
|
|
7
|
-
durationMs: number;
|
|
8
|
-
delayMs: number;
|
|
9
|
-
easing: string;
|
|
10
|
-
}
|
|
11
|
-
export type SettleWrite = (decl: CssDecl) => void;
|
|
12
|
-
export interface SettleScrubber {
|
|
13
|
-
settle: (element: HTMLElement, decls: CssDecl[], timing: SettleTiming, writeFinal: SettleWrite, owner?: symbol) => Promise<void> | null;
|
|
14
|
-
takeover: (element: HTMLElement, owner?: symbol) => void;
|
|
15
|
-
cancel: (element: HTMLElement, owner?: symbol) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const createSettleScrubber: (scheduler?: SettleScheduler) => SettleScrubber;
|
|
18
|
-
declare const settleScrubber: SettleScrubber;
|
|
19
|
-
export default settleScrubber;
|
|
File without changes
|