@ionic/react-router 9.0.6-nightly.20260928 → 9.0.6-nightly.20260930

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,4 +1,4 @@
1
- import type { ViewItem } from '@ionic/react';
1
+ import type { RouteInfo, ViewItem } from '@ionic/react';
2
2
  /**
3
3
  * Compares two routes by specificity for sorting (most specific first).
4
4
  *
@@ -15,6 +15,32 @@ export declare const compareRouteSpecificity: (a: {
15
15
  path: string;
16
16
  index: boolean;
17
17
  }) => number;
18
+ /**
19
+ * True when a route matches more pathnames than its own path, so a splat, an index route,
20
+ * or a route with an empty or absent path. A lookup can return one of these for a pathname
21
+ * a more specific sibling owns, so callers must confirm ownership against React Router's
22
+ * ranking before reusing the view item.
23
+ *
24
+ * This is deliberately wider than the catch-all checks in ReactRouterViewStack, which each
25
+ * gate on a narrower shape for a different reason. Don't unify them with this helper.
26
+ */
27
+ export declare const isOverMatchingRoute: (route: {
28
+ path?: string;
29
+ index?: boolean;
30
+ }) => boolean;
31
+ /** True when the navigation pushed a new page forward on top of the current one. */
32
+ export declare const isForwardPush: (routeInfo: Pick<RouteInfo, "routeAction" | "routeDirection">) => boolean;
33
+ /**
34
+ * Marks the page a swipe-back gesture has revealed. For the length of the drag that page
35
+ * is on screen while a more specific sibling still matches the current pathname, and the
36
+ * deactivation scan in `renderViewItem` would otherwise re-hide it on the next render and
37
+ * leave the user dragging a blank page.
38
+ */
39
+ export declare const markSwipeRevealed: (viewItem: ViewItem | undefined) => void;
40
+ /** Drops the mark once the gesture ends, so the view is hidden normally again. */
41
+ export declare const clearSwipeRevealed: (viewItem: ViewItem | undefined) => void;
42
+ /** True while a swipe-back gesture is showing this view. */
43
+ export declare const isSwipeRevealed: (viewItem: ViewItem) => boolean;
18
44
  /**
19
45
  * Sorts view items by route specificity (most specific first).
20
46
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/react-router",
3
- "version": "9.0.6-nightly.20260928",
3
+ "version": "9.0.6-nightly.20260930",
4
4
  "description": "React Router wrapper for @ionic/react",
5
5
  "keywords": [
6
6
  "ionic",
@@ -37,7 +37,7 @@
37
37
  "dist/"
38
38
  ],
39
39
  "dependencies": {
40
- "@ionic/react": "9.0.6-nightly.20260928",
40
+ "@ionic/react": "9.0.6-nightly.20260930",
41
41
  "tslib": "*"
42
42
  },
43
43
  "peerDependencies": {