@flemo/core 2.0.0 → 2.1.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,6 +11,7 @@ export interface FlemoStores {
11
11
  transition: TransitionStoreApi;
12
12
  screen: ScreenStoreApi;
13
13
  driver: HistoryDriver;
14
+ memory: boolean;
14
15
  markSelfInduced: () => void;
15
16
  consume: () => boolean;
16
17
  routerKey?: string;
@@ -0,0 +1,13 @@
1
+ import { AnimationOptions, TransitionTarget } from '../../../transition/cssTypes';
2
+ import { Transition } from '../../../transition/typing';
3
+ /**
4
+ * A full status x active variant table for a hand-built `Transition` stub.
5
+ *
6
+ * Every swipe-controller suite used to write `variants: {}` behind an
7
+ * `as unknown as Transition`, which typechecked because the cast said so and
8
+ * ran because nothing read the table. Two things read it now: the drag layer
9
+ * hold folds a transition's clock into its decorator's, and the release reads
10
+ * the pop variant for the ceiling the decorator borrows. A partial table is a
11
+ * shape no real `Transition` can have, so the stubs carry all ten keys.
12
+ */
13
+ export declare const fullVariants: (value: TransitionTarget, options?: AnimationOptions) => Transition["variants"];
@@ -11,6 +11,7 @@ export interface HistorySyncDeps {
11
11
  routerKey?: string;
12
12
  zoneEntryId?: string;
13
13
  ownsPathname?: (pathname: string) => boolean;
14
+ memory?: boolean;
14
15
  }
15
16
  export default function createHistorySync(deps: HistorySyncDeps): () => void;
16
17
  export declare function readRecordedFrame(routerKey: string, pathname: string): unknown;
@@ -23,6 +24,7 @@ interface SyncScope {
23
24
  routerKey?: string;
24
25
  zoneEntryId?: string;
25
26
  ownsPathname?: (pathname: string) => boolean;
27
+ memory?: boolean;
26
28
  }
27
29
  export declare function ensureScopeHistorySync(scope: SyncScope): void;
28
30
  export declare function releaseScopeHistorySync(scope: SyncScope): void;
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ export { default as createTransitionStore, type TransitionStore, type Transition
22
22
  export { default as createDecorator } from './transition/decorator/createDecorator';
23
23
  export { default as createRawDecorator } from './transition/decorator/createRawDecorator';
24
24
  export { decoratorMap } from './transition/decorator/decorator';
25
+ export { resolveDecoratorClock } from './transition/decorator/resolveDecoratorClock';
25
26
  export { default as createPartTransition } from './transition/partTransition/createPartTransition';
26
27
  export { default as createRawPartTransition } from './transition/partTransition/createRawPartTransition';
27
28
  export { partTransitionMap } from './transition/partTransition/partTransition';
@@ -62,6 +63,8 @@ export { detectBlinkEngine, isDesktopBlink, isLegacyAndroidBlink } from './platf
62
63
  export { steadySixtyDesktopProfile } from './platform/steadySixtyCadence';
63
64
  export { swipeSettleSeconds, MIN_SETTLE_SECONDS, type SwipeSettleInput } from './transition/swipeSettle';
64
65
  export { default as observeBarHeight } from './screen/observeBarHeight';
66
+ export { default as publishRideBox } from './screen/publishRideBox';
67
+ export { percentRatio, resolveRideTarget, rideLength, RIDE_HEIGHT_VAR } from './transition/rideOffset';
65
68
  export { default as observeViewportScrollHeight } from './screen/observeViewportScrollHeight';
66
69
  export { default as holdCompositorWarm } from './core/engine/compositorWarmUp';
67
70
  export { default as ensureGpuPipelinePrewarm } from './core/engine/gpuPipelinePrewarm';