@ionic/react 8.8.1-dev.11772745200.1f0e21b1 → 8.8.1-dev.11773168858.1f9c0eb8

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.
@@ -2,9 +2,8 @@ import React from 'react';
2
2
  import { NavContext } from '../contexts/NavContext';
3
3
  export interface IonRouteProps {
4
4
  path?: string;
5
- exact?: boolean;
6
5
  show?: boolean;
7
- render: (props?: any) => JSX.Element;
6
+ element: React.ReactElement;
8
7
  disableIonPageManagement?: boolean;
9
8
  }
10
9
  interface IonRouteState {
@@ -5,4 +5,5 @@ export declare const IonRouterOutlet: React.ForwardRefExoticComponent<Omit<Local
5
5
  basePath?: string;
6
6
  ref?: React.Ref<any>;
7
7
  ionPage?: boolean;
8
+ id?: string;
8
9
  } & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style" | "placeholder">, "ref"> & React.RefAttributes<HTMLIonRouterOutletElement>>;
@@ -20,7 +20,6 @@ export { IonBackButton } from './navigation/IonBackButton';
20
20
  export { IonRouterOutlet } from './IonRouterOutlet';
21
21
  export { IonIcon } from './IonIcon';
22
22
  export * from './IonRoute';
23
- export * from './IonRedirect';
24
23
  export * from './IonRouterContext';
25
24
  export { isPlatform, getPlatforms, getConfig } from './utils';
26
25
  export * from './hrefprops';
@@ -3,8 +3,6 @@ import React from 'react';
3
3
  import type { RouteInfo } from '../models';
4
4
  export interface NavContextState {
5
5
  getIonRoute: () => any;
6
- getIonRedirect: () => any;
7
- getPageManager: () => any;
8
6
  getStackManager: () => any;
9
7
  goBack: (route?: string | RouteInfo, animationBuilder?: AnimationBuilder) => void;
10
8
  navigate: (path: string, direction?: RouterDirection | 'none', ionRouteAction?: 'push' | 'replace' | 'pop', animationBuilder?: AnimationBuilder, options?: any, tab?: string) => void;
@@ -6,7 +6,6 @@ import type { RouteAction } from '../models/RouteAction';
6
6
  import type { RouteInfo } from '../models/RouteInfo';
7
7
  import type { RouterDirection } from '../models/RouterDirection';
8
8
  import type { LocationHistory } from './LocationHistory';
9
- import PageManager from './PageManager';
10
9
  interface NavManagerProps {
11
10
  routeInfo: RouteInfo;
12
11
  onNativeBack: () => void;
@@ -15,7 +14,6 @@ interface NavManagerProps {
15
14
  onSetCurrentTab: (tab: string, routeInfo: RouteInfo) => void;
16
15
  onChangeTab: (tab: string, path: string, routeOptions?: any) => void;
17
16
  onResetTab: (tab: string, path: string, routeOptions?: any) => void;
18
- ionRedirect: any;
19
17
  ionRoute: any;
20
18
  stackManager: any;
21
19
  locationHistory: LocationHistory;
@@ -29,8 +27,6 @@ export declare class NavManager extends React.PureComponent<NavManagerProps, Nav
29
27
  goBack(route?: string | RouteInfo, animationBuilder?: AnimationBuilder): void;
30
28
  nativeGoBack(): void;
31
29
  navigate(path: string, direction?: RouterDirection, action?: RouteAction, animationBuilder?: AnimationBuilder, options?: any, tab?: string): void;
32
- getPageManager(): typeof PageManager;
33
- getIonRedirect(): any;
34
30
  getIonRoute(): any;
35
31
  getStackManager(): any;
36
32
  render(): import("react/jsx-runtime").JSX.Element;
@@ -7,6 +7,7 @@ interface OutletPageManagerProps {
7
7
  forwardedRef?: React.ForwardedRef<HTMLIonRouterOutletElement>;
8
8
  routeInfo?: RouteInfo;
9
9
  StackManager: any;
10
+ id?: string;
10
11
  }
11
12
  export declare class OutletPageManager extends React.Component<OutletPageManagerProps> {
12
13
  ionLifeCycleContext: React.ContextType<typeof IonLifeCycleContext>;
@@ -13,7 +13,14 @@ export declare class PageManager extends React.PureComponent<PageManagerProps> {
13
13
  ionPageElementRef: React.RefObject<HTMLDivElement>;
14
14
  stableMergedRefs: React.RefCallback<HTMLDivElement>;
15
15
  constructor(props: PageManagerProps);
16
+ private parseClasses;
17
+ /**
18
+ * Updates classList by diffing old/new className props.
19
+ * Preserves framework-added classes (can-go-back, ion-page-invisible, etc.).
20
+ */
21
+ private updateUserClasses;
16
22
  componentDidMount(): void;
23
+ componentDidUpdate(prevProps: PageManagerProps): void;
17
24
  componentWillUnmount(): void;
18
25
  ionViewWillEnterHandler(): void;
19
26
  ionViewDidEnterHandler(): void;
@@ -10,6 +10,11 @@ export interface RouteManagerContextState {
10
10
  findLeavingViewItemByRouteInfo: (routeInfo: RouteInfo, outletId?: string) => ViewItem | undefined;
11
11
  findViewItemByRouteInfo: (routeInfo: RouteInfo, outletId?: string, updateMatch?: boolean) => ViewItem | undefined;
12
12
  getChildrenToRender: (outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo, reRender: () => void) => React.ReactNode[];
13
+ /**
14
+ * Returns all view items currently registered for a given outlet id.
15
+ * Used by StackManager for out-of-scope cleanup.
16
+ */
17
+ getViewItemsForOutlet: (outletId: string) => ViewItem[];
13
18
  goBack: () => void;
14
19
  unMountViewItem: (viewItem: ViewItem) => void;
15
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ionic/react",
3
- "version": "8.8.1-dev.11772745200.1f0e21b1",
3
+ "version": "8.8.1-dev.11773168858.1f9c0eb8",
4
4
  "description": "React specific wrapper for @ionic/core",
5
5
  "keywords": [
6
6
  "ionic",
@@ -40,7 +40,7 @@
40
40
  "css/"
41
41
  ],
42
42
  "dependencies": {
43
- "@ionic/core": "8.8.1-dev.11772745200.1f0e21b1",
43
+ "@ionic/core": "8.8.1-dev.11773168858.1f9c0eb8",
44
44
  "ionicons": "^8.0.13",
45
45
  "tslib": "*"
46
46
  },
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { NavContext } from '../contexts/NavContext';
3
- export interface IonRedirectProps {
4
- path?: string;
5
- exact?: boolean;
6
- to: string;
7
- routerOptions?: unknown;
8
- }
9
- interface IonRedirectState {
10
- }
11
- export declare class IonRedirect extends React.PureComponent<IonRedirectProps, IonRedirectState> {
12
- context: React.ContextType<typeof NavContext>;
13
- render(): import("react/jsx-runtime").JSX.Element | null;
14
- static get contextType(): React.Context<import("../contexts/NavContext").NavContextState>;
15
- }
16
- export {};