@flemo/core 1.5.0 → 1.6.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.
@@ -1,3 +1,4 @@
1
+ import { HistoryDriver } from '../history/historyDriver';
1
2
  import { HistoryStoreApi } from '../history/store';
2
3
  import { NavigateStoreApi } from './store';
3
4
  import { TransitionStoreApi } from '../transition/store';
@@ -23,6 +24,8 @@ export interface NavigationControllerDeps {
23
24
  pathname: string;
24
25
  toPathname: string;
25
26
  };
27
+ driver?: HistoryDriver;
28
+ markSelfInduced?: () => void;
26
29
  }
27
30
  export default function createNavigationController(deps: NavigationControllerDeps): {
28
31
  push: (path: string, params?: object, options?: NavigateOptions) => Promise<void>;
@@ -1,3 +1,8 @@
1
+ export interface SelfPopGuard {
2
+ mark(): void;
3
+ consume(): boolean;
4
+ }
5
+ export declare function createSelfPopGuard(): SelfPopGuard;
1
6
  /**
2
7
  * Marks that flemo itself is about to call `window.history.back()`. The
3
8
  * `popstate` it produces is then consumed by `consumeSelfInducedPop` so the
@@ -1,7 +1,7 @@
1
1
  import { StoreApi } from 'zustand/vanilla';
2
2
  export interface SharedBarPresence {
3
- appBar: boolean;
4
- navigationBar: boolean;
3
+ topBar: boolean;
4
+ bottomBar: boolean;
5
5
  }
6
6
  export interface ScreenStore {
7
7
  dragStatus: "IDLE" | "PENDING";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flemo/core",
3
- "version": "1.5.0",
3
+ "version": "1.6.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",