@ionic/react 8.8.19-dev.11786610762.137bbb21 → 8.8.19-dev.11786730389.1a1927bf
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/css/core.css +1 -1
- package/css/core.css.map +1 -1
- package/css/display.css +1 -1
- package/css/display.css.map +1 -1
- package/css/flex-utils.css +1 -1
- package/css/flex-utils.css.map +1 -1
- package/css/float-elements.css.map +1 -1
- package/css/global.bundle.css.map +1 -1
- package/css/ionic-swiper.css +1 -1
- package/css/ionic-swiper.css.map +1 -1
- package/css/ionic.bundle.css +1 -1
- package/css/ionic.bundle.css.map +1 -1
- package/css/normalize.css.map +1 -1
- package/css/padding.css.map +1 -1
- package/css/palettes/dark.always.css.map +1 -1
- package/css/palettes/dark.class.css.map +1 -1
- package/css/palettes/dark.system.css.map +1 -1
- package/css/palettes/high-contrast-dark.always.css.map +1 -1
- package/css/palettes/high-contrast-dark.class.css.map +1 -1
- package/css/palettes/high-contrast-dark.system.css.map +1 -1
- package/css/palettes/high-contrast.always.css.map +1 -1
- package/css/palettes/high-contrast.class.css.map +1 -1
- package/css/palettes/high-contrast.system.css.map +1 -1
- package/css/structure.css.map +1 -1
- package/css/text-alignment.css.map +1 -1
- package/css/text-transformation.css.map +1 -1
- package/css/typography.css.map +1 -1
- package/css/utils.bundle.css +1 -1
- package/css/utils.bundle.css.map +1 -1
- package/dist/index.js +1182 -460
- package/dist/index.js.map +1 -1
- package/dist/types/components/IonActionSheet.d.ts +1 -1
- package/dist/types/components/IonAlert.d.ts +1 -1
- package/dist/types/components/IonIcon.d.ts +1 -1
- package/dist/types/components/IonLoading.d.ts +1 -1
- package/dist/types/components/IonModal.d.ts +1 -1
- package/dist/types/components/IonPage.d.ts +1 -1
- package/dist/types/components/IonPopover.d.ts +1 -1
- package/dist/types/components/IonRoute.d.ts +4 -3
- package/dist/types/components/IonRouterContext.d.ts +8 -0
- package/dist/types/components/IonRouterOutlet.d.ts +1 -0
- package/dist/types/components/IonToast.d.ts +1 -1
- package/dist/types/components/__tests__/createRoutingComponent.spec.d.ts +1 -0
- package/dist/types/components/__tests__/utils.spec.d.ts +1 -1
- package/dist/types/components/components.d.ts +326 -0
- package/dist/types/components/createInlineOverlayComponent.d.ts +1 -1
- package/dist/types/components/createRoutingComponent.d.ts +1 -1
- package/dist/types/components/index.d.ts +4 -6
- package/dist/types/components/navigation/IonBackButton.d.ts +1 -1
- package/dist/types/components/navigation/IonNav.d.ts +2 -1
- package/dist/types/components/navigation/IonTabBar.d.ts +1 -1
- package/dist/types/components/navigation/IonTabs.d.ts +2 -3
- package/dist/types/components/react-component-lib/__tests__/createComponent.spec.d.ts +1 -0
- package/dist/types/components/react-component-lib/createComponent.d.ts +1 -1
- package/dist/types/components/react-component-lib/utils/index.d.ts +1 -1
- package/dist/types/components/routing-proxies.d.ts +14 -14
- package/dist/types/components/utils/index.d.ts +4 -13
- package/dist/types/contexts/NavContext.d.ts +0 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/lifecycle/IonLifeCycleHOC.d.ts +1 -3
- package/dist/types/routing/LocationHistory.d.ts +7 -0
- package/dist/types/routing/NavManager.d.ts +2 -4
- package/dist/types/routing/OutletPageManager.d.ts +2 -0
- package/dist/types/routing/PageManager.d.ts +8 -0
- package/dist/types/routing/RouteManagerContext.d.ts +6 -1
- package/dist/types/routing/ViewLifeCycleManager.d.ts +18 -17
- package/dist/types/routing/ViewStacks.d.ts +2 -2
- package/dist/types/utils/__tests__/debug.spec.d.ts +1 -0
- package/dist/types/utils/config.d.ts +7 -0
- package/dist/types/utils/debug.d.ts +9 -0
- package/package.json +37 -18
- package/css/ionic/bundle.ionic.css +0 -1
- package/css/ionic/bundle.ionic.css.map +0 -1
- package/css/ionic/core.ionic.css +0 -1
- package/css/ionic/core.ionic.css.map +0 -1
- package/css/ionic/global.bundle.ionic.css +0 -1
- package/css/ionic/global.bundle.ionic.css.map +0 -1
- package/css/ionic/ionic-swiper.ionic.css +0 -1
- package/css/ionic/ionic-swiper.ionic.css.map +0 -1
- package/css/ionic/link.ionic.css +0 -1
- package/css/ionic/link.ionic.css.map +0 -1
- package/css/ionic/structure.ionic.css +0 -1
- package/css/ionic/structure.ionic.css.map +0 -1
- package/css/ionic/typography.ionic.css +0 -1
- package/css/ionic/typography.ionic.css.map +0 -1
- package/css/ionic/utils.bundle.ionic.css +0 -1
- package/css/ionic/utils.bundle.ionic.css.map +0 -1
- package/dist/types/components/IonPickerLegacy.d.ts +0 -2
- package/dist/types/components/IonRedirect.d.ts +0 -16
- package/dist/types/components/proxies.d.ts +0 -76
- package/dist/types/hooks/useIonPicker.d.ts +0 -27
|
@@ -3,41 +3,41 @@ export declare const IonRouterLink: import("react").ForwardRefExoticComponent<Om
|
|
|
3
3
|
routerLink?: string;
|
|
4
4
|
routerDirection?: import("..").RouterDirection;
|
|
5
5
|
routerOptions?: import("..").RouterOptions;
|
|
6
|
-
routerAnimation?: import("@ionic/core
|
|
7
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonRouterLinkElement>, "style"
|
|
6
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
7
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonRouterLinkElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonRouterLinkElement>>;
|
|
8
8
|
export declare const IonButton: import("react").ForwardRefExoticComponent<Omit<JSX.IonButton, "routerDirection"> & {
|
|
9
9
|
routerLink?: string;
|
|
10
10
|
routerDirection?: import("..").RouterDirection;
|
|
11
11
|
routerOptions?: import("..").RouterOptions;
|
|
12
|
-
routerAnimation?: import("@ionic/core
|
|
13
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonButtonElement>, "style"
|
|
12
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
13
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonButtonElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonButtonElement>>;
|
|
14
14
|
export declare const IonCard: import("react").ForwardRefExoticComponent<Omit<JSX.IonCard, "routerDirection"> & {
|
|
15
15
|
routerLink?: string;
|
|
16
16
|
routerDirection?: import("..").RouterDirection;
|
|
17
17
|
routerOptions?: import("..").RouterOptions;
|
|
18
|
-
routerAnimation?: import("@ionic/core
|
|
19
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonCardElement>, "style"
|
|
18
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
19
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonCardElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonCardElement>>;
|
|
20
20
|
export declare const IonFabButton: import("react").ForwardRefExoticComponent<Omit<JSX.IonFabButton, "routerDirection"> & {
|
|
21
21
|
routerLink?: string;
|
|
22
22
|
routerDirection?: import("..").RouterDirection;
|
|
23
23
|
routerOptions?: import("..").RouterOptions;
|
|
24
|
-
routerAnimation?: import("@ionic/core
|
|
25
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonFabButtonElement>, "style"
|
|
24
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
25
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonFabButtonElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonFabButtonElement>>;
|
|
26
26
|
export declare const IonItem: import("react").ForwardRefExoticComponent<Omit<JSX.IonItem, "routerDirection"> & {
|
|
27
27
|
routerLink?: string;
|
|
28
28
|
routerDirection?: import("..").RouterDirection;
|
|
29
29
|
routerOptions?: import("..").RouterOptions;
|
|
30
|
-
routerAnimation?: import("@ionic/core
|
|
31
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonItemElement>, "style"
|
|
30
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
31
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonItemElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonItemElement>>;
|
|
32
32
|
export declare const IonItemOption: import("react").ForwardRefExoticComponent<Omit<JSX.IonItemOption, "routerDirection"> & {
|
|
33
33
|
routerLink?: string;
|
|
34
34
|
routerDirection?: import("..").RouterDirection;
|
|
35
35
|
routerOptions?: import("..").RouterOptions;
|
|
36
|
-
routerAnimation?: import("@ionic/core
|
|
37
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonItemOptionElement>, "style"
|
|
36
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
37
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonItemOptionElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonItemOptionElement>>;
|
|
38
38
|
export declare const IonBreadcrumb: import("react").ForwardRefExoticComponent<Omit<JSX.IonBreadcrumb, "routerDirection"> & {
|
|
39
39
|
routerLink?: string;
|
|
40
40
|
routerDirection?: import("..").RouterDirection;
|
|
41
41
|
routerOptions?: import("..").RouterOptions;
|
|
42
|
-
routerAnimation?: import("@ionic/core
|
|
43
|
-
} & Omit<import("react").HTMLAttributes<HTMLIonBreadcrumbElement>, "style"
|
|
42
|
+
routerAnimation?: import("@ionic/core").AnimationBuilder;
|
|
43
|
+
} & Omit<import("react").HTMLAttributes<HTMLIonBreadcrumbElement>, "style"> & import("./IonicReactProps").IonicReactProps & import("react").RefAttributes<HTMLIonBreadcrumbElement>>;
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Platforms } from '@ionic/core/components';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { IonicReactProps } from '../IonicReactProps';
|
|
4
|
-
export type IonicReactExternalProps<PropType, ElementType> = PropType &
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
* The `placeholder` property was removed from `HTMLAttributes` in @types/react@18.2.43
|
|
9
|
-
* https://github.com/DefinitelyTyped/DefinitelyTyped/commit/b954269038de46b4b2f1756a9f2f020cbc66a326
|
|
10
|
-
*
|
|
11
|
-
* This is a temporary workaround until @ionic/react is updated to >=18.2.43.
|
|
12
|
-
*/
|
|
13
|
-
Omit<React.HTMLAttributes<ElementType>, 'style' | 'placeholder'> & IonicReactProps;
|
|
14
|
-
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<React.PropsWithoutRef<IonicReactExternalProps<PropType, ElementType>>> & React.RefAttributes<ElementType>>;
|
|
4
|
+
export type IonicReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & IonicReactProps;
|
|
5
|
+
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, // TODO(FW-2959): type
|
|
6
|
+
displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<IonicReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
15
7
|
export declare const isPlatform: (platform: Platforms) => boolean;
|
|
16
8
|
export declare const getPlatforms: () => ("ipad" | "iphone" | "ios" | "android" | "phablet" | "tablet" | "cordova" | "capacitor" | "electron" | "pwa" | "mobile" | "mobileweb" | "desktop" | "hybrid")[];
|
|
17
|
-
export declare const getConfig: () => CoreConfig | null;
|
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -8,9 +8,7 @@ export declare const withIonLifeCycle: (WrappedComponent: React.ComponentType<an
|
|
|
8
8
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
10
10
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
11
|
-
readonly props: Readonly<any
|
|
12
|
-
children?: React.ReactNode | undefined;
|
|
13
|
-
}>;
|
|
11
|
+
readonly props: Readonly<any>;
|
|
14
12
|
state: Readonly<any>;
|
|
15
13
|
refs: {
|
|
16
14
|
[key: string]: React.ReactInstance;
|
|
@@ -13,8 +13,15 @@ export declare class LocationHistory {
|
|
|
13
13
|
private _getRouteInfosByKey;
|
|
14
14
|
getFirstRouteInfoForTab(tab: string): RouteInfo<any> | undefined;
|
|
15
15
|
getCurrentRouteInfoForTab(tab?: string): RouteInfo<any> | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Returns the most recent RouteInfo in global history (excluding the current
|
|
18
|
+
* entry) whose pathname matches the given value. Unlike findLastLocation,
|
|
19
|
+
* this search is tab-agnostic. Used by the multi-step back detection.
|
|
20
|
+
*/
|
|
21
|
+
findLastLocationByPathname(pathname: string): RouteInfo<any> | undefined;
|
|
16
22
|
findLastLocation(routeInfo: RouteInfo): RouteInfo<any> | undefined;
|
|
17
23
|
previous(): RouteInfo<any>;
|
|
18
24
|
current(): RouteInfo<any>;
|
|
19
25
|
canGoBack(): boolean;
|
|
26
|
+
findTabForPathname(pathname: string): string | undefined;
|
|
20
27
|
}
|
|
@@ -6,19 +6,19 @@ 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;
|
|
13
12
|
onNavigateBack: (route?: string | RouteInfo, animationBuilder?: AnimationBuilder) => void;
|
|
14
13
|
onNavigate: (path: string, action: RouteAction, direction?: RouterDirection, animationBuilder?: AnimationBuilder, options?: any, tab?: string) => void;
|
|
14
|
+
onNavigateRoot: (pathname: string, animationBuilder?: AnimationBuilder) => void;
|
|
15
15
|
onSetCurrentTab: (tab: string, routeInfo: RouteInfo) => void;
|
|
16
16
|
onChangeTab: (tab: string, path: string, routeOptions?: any) => void;
|
|
17
17
|
onResetTab: (tab: string, path: string, routeOptions?: any) => void;
|
|
18
|
-
ionRedirect: any;
|
|
19
18
|
ionRoute: any;
|
|
20
19
|
stackManager: any;
|
|
21
20
|
locationHistory: LocationHistory;
|
|
21
|
+
children: React.ReactNode;
|
|
22
22
|
}
|
|
23
23
|
export declare class NavManager extends React.PureComponent<NavManagerProps, NavContextState> {
|
|
24
24
|
ionRouterContextValue: IonRouterContextState;
|
|
@@ -29,8 +29,6 @@ export declare class NavManager extends React.PureComponent<NavManagerProps, Nav
|
|
|
29
29
|
goBack(route?: string | RouteInfo, animationBuilder?: AnimationBuilder): void;
|
|
30
30
|
nativeGoBack(): void;
|
|
31
31
|
navigate(path: string, direction?: RouterDirection, action?: RouteAction, animationBuilder?: AnimationBuilder, options?: any, tab?: string): void;
|
|
32
|
-
getPageManager(): typeof PageManager;
|
|
33
|
-
getIonRedirect(): any;
|
|
34
32
|
getIonRoute(): any;
|
|
35
33
|
getStackManager(): any;
|
|
36
34
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,8 +5,10 @@ import { StackContext } from './StackContext';
|
|
|
5
5
|
interface OutletPageManagerProps {
|
|
6
6
|
className?: string;
|
|
7
7
|
forwardedRef?: React.ForwardedRef<HTMLIonRouterOutletElement>;
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
routeInfo?: RouteInfo;
|
|
9
10
|
StackManager: any;
|
|
11
|
+
id?: string;
|
|
10
12
|
}
|
|
11
13
|
export declare class OutletPageManager extends React.Component<OutletPageManagerProps> {
|
|
12
14
|
ionLifeCycleContext: React.ContextType<typeof IonLifeCycleContext>;
|
|
@@ -5,6 +5,7 @@ import { StackContext } from './StackContext';
|
|
|
5
5
|
interface PageManagerProps {
|
|
6
6
|
className?: string;
|
|
7
7
|
forwardedRef?: React.ForwardedRef<HTMLDivElement>;
|
|
8
|
+
children: React.ReactNode;
|
|
8
9
|
routeInfo?: RouteInfo;
|
|
9
10
|
}
|
|
10
11
|
export declare class PageManager extends React.PureComponent<PageManagerProps> {
|
|
@@ -13,7 +14,14 @@ export declare class PageManager extends React.PureComponent<PageManagerProps> {
|
|
|
13
14
|
ionPageElementRef: React.RefObject<HTMLDivElement>;
|
|
14
15
|
stableMergedRefs: React.RefCallback<HTMLDivElement>;
|
|
15
16
|
constructor(props: PageManagerProps);
|
|
17
|
+
private parseClasses;
|
|
18
|
+
/**
|
|
19
|
+
* Updates classList by diffing old/new className props.
|
|
20
|
+
* Preserves framework-added classes (can-go-back, ion-page-invisible, etc.).
|
|
21
|
+
*/
|
|
22
|
+
private updateUserClasses;
|
|
16
23
|
componentDidMount(): void;
|
|
24
|
+
componentDidUpdate(prevProps: PageManagerProps): void;
|
|
17
25
|
componentWillUnmount(): void;
|
|
18
26
|
ionViewWillEnterHandler(): void;
|
|
19
27
|
ionViewDidEnterHandler(): void;
|
|
@@ -9,7 +9,12 @@ export interface RouteManagerContextState {
|
|
|
9
9
|
findViewItemByPathname(pathname: string, outletId?: string): ViewItem | undefined;
|
|
10
10
|
findLeavingViewItemByRouteInfo: (routeInfo: RouteInfo, outletId?: string) => ViewItem | undefined;
|
|
11
11
|
findViewItemByRouteInfo: (routeInfo: RouteInfo, outletId?: string, updateMatch?: boolean) => ViewItem | undefined;
|
|
12
|
-
getChildrenToRender: (outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo, reRender: () => void) => React.ReactNode[];
|
|
12
|
+
getChildrenToRender: (outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo, reRender: () => void, parentPathnameBase?: string) => 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
|
}
|
|
@@ -2,33 +2,34 @@ import React from 'react';
|
|
|
2
2
|
interface ViewTransitionManagerProps {
|
|
3
3
|
removeView: () => void;
|
|
4
4
|
mount: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
5
6
|
}
|
|
6
7
|
interface ViewTransitionManagerState {
|
|
7
8
|
show: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class ViewLifeCycleManager extends React.Component<ViewTransitionManagerProps, ViewTransitionManagerState> {
|
|
10
11
|
ionLifeCycleContext: {
|
|
11
|
-
ionViewWillEnterCallbacks: import("
|
|
12
|
-
ionViewDidEnterCallbacks: import("
|
|
13
|
-
ionViewWillLeaveCallbacks: import("
|
|
14
|
-
ionViewDidLeaveCallbacks: import("
|
|
12
|
+
ionViewWillEnterCallbacks: import("..").LifeCycleCallback[];
|
|
13
|
+
ionViewDidEnterCallbacks: import("..").LifeCycleCallback[];
|
|
14
|
+
ionViewWillLeaveCallbacks: import("..").LifeCycleCallback[];
|
|
15
|
+
ionViewDidLeaveCallbacks: import("..").LifeCycleCallback[];
|
|
15
16
|
componentCanBeDestroyedCallback?: () => void;
|
|
16
|
-
ionViewWillEnterDestructorCallbacks: import("
|
|
17
|
-
ionViewDidEnterDestructorCallbacks: import("
|
|
18
|
-
ionViewWillLeaveDestructorCallbacks: import("
|
|
19
|
-
ionViewDidLeaveDestructorCallbacks: import("
|
|
20
|
-
onIonViewWillEnter(callback: import("
|
|
21
|
-
teardownCallback(callback: import("
|
|
22
|
-
cleanupIonViewWillEnter(callback: import("
|
|
23
|
-
cleanupIonViewDidEnter(callback: import("
|
|
24
|
-
cleanupIonViewWillLeave(callback: import("
|
|
25
|
-
cleanupIonViewDidLeave(callback: import("
|
|
17
|
+
ionViewWillEnterDestructorCallbacks: import("..").LifeCycleDestructor[];
|
|
18
|
+
ionViewDidEnterDestructorCallbacks: import("..").LifeCycleDestructor[];
|
|
19
|
+
ionViewWillLeaveDestructorCallbacks: import("..").LifeCycleDestructor[];
|
|
20
|
+
ionViewDidLeaveDestructorCallbacks: import("..").LifeCycleDestructor[];
|
|
21
|
+
onIonViewWillEnter(callback: import("..").LifeCycleCallback): void;
|
|
22
|
+
teardownCallback(callback: import("..").LifeCycleCallback, callbacks: any[]): void;
|
|
23
|
+
cleanupIonViewWillEnter(callback: import("..").LifeCycleCallback): void;
|
|
24
|
+
cleanupIonViewDidEnter(callback: import("..").LifeCycleCallback): void;
|
|
25
|
+
cleanupIonViewWillLeave(callback: import("..").LifeCycleCallback): void;
|
|
26
|
+
cleanupIonViewDidLeave(callback: import("..").LifeCycleCallback): void;
|
|
26
27
|
ionViewWillEnter(): void;
|
|
27
|
-
onIonViewDidEnter(callback: import("
|
|
28
|
+
onIonViewDidEnter(callback: import("..").LifeCycleCallback): void;
|
|
28
29
|
ionViewDidEnter(): void;
|
|
29
|
-
onIonViewWillLeave(callback: import("
|
|
30
|
+
onIonViewWillLeave(callback: import("..").LifeCycleCallback): void;
|
|
30
31
|
ionViewWillLeave(): void;
|
|
31
|
-
onIonViewDidLeave(callback: import("
|
|
32
|
+
onIonViewDidLeave(callback: import("..").LifeCycleCallback): void;
|
|
32
33
|
ionViewDidLeave(): void;
|
|
33
34
|
onComponentCanBeDestroyed(callback: () => void): void;
|
|
34
35
|
componentCanBeDestroyed(): void;
|
|
@@ -4,7 +4,7 @@ export declare abstract class ViewStacks {
|
|
|
4
4
|
private viewStacks;
|
|
5
5
|
constructor();
|
|
6
6
|
add(viewItem: ViewItem): void;
|
|
7
|
-
clear(outletId: string):
|
|
7
|
+
clear(outletId: string): void;
|
|
8
8
|
getViewItemsForOutlet(outletId: string): ViewItem<any>[];
|
|
9
9
|
remove(viewItem: ViewItem): void;
|
|
10
10
|
protected getStackIds(): string[];
|
|
@@ -13,5 +13,5 @@ export declare abstract class ViewStacks {
|
|
|
13
13
|
abstract findViewItemByPathname(pathname: string, outletId?: string): ViewItem | undefined;
|
|
14
14
|
abstract findViewItemByRouteInfo(routeInfo: RouteInfo, outletId?: string, updateMatch?: boolean): ViewItem | undefined;
|
|
15
15
|
abstract findLeavingViewItemByRouteInfo(routeInfo: RouteInfo, outletId?: string): ViewItem | undefined;
|
|
16
|
-
abstract getChildrenToRender(outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo, reRender: () => void,
|
|
16
|
+
abstract getChildrenToRender(outletId: string, ionRouterOutlet: React.ReactElement, routeInfo: RouteInfo, reRender: () => void, parentPathnameBase?: string): React.ReactNode[];
|
|
17
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Config as CoreConfig } from '@ionic/core/components';
|
|
2
|
+
/**
|
|
3
|
+
* Ionic's global config, or `null` before core has initialized. Kept here rather
|
|
4
|
+
* than alongside the component helpers so that utils reaching for config don't
|
|
5
|
+
* pull core's runtime bundle in with it.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getConfig: () => CoreConfig | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** @internal */
|
|
2
|
+
export type DebugLogger = (event: string, getData?: () => unknown) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Logger namespaced to a package, e.g. `react-router`. The payload is a function
|
|
5
|
+
* so nothing it collects runs while logging is off.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare const createDebugLogger: (namespace: string) => DebugLogger;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/react",
|
|
3
|
-
"version": "8.8.19-dev.
|
|
3
|
+
"version": "8.8.19-dev.11786730389.1a1927bf",
|
|
4
4
|
"description": "React specific wrapper for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"prettier": "prettier \"./src/**/*.{html,ts,tsx,js,jsx}\"",
|
|
29
29
|
"lint": "npm run eslint && npm run prettier -- --write --cache",
|
|
30
30
|
"lint.fix": "npm run eslint -- --fix && npm run prettier -- --write --cache",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
31
32
|
"copy": "node scripts/copy.js",
|
|
32
33
|
"test.spec": "jest --ci",
|
|
33
34
|
"sync": "sh ./scripts/sync.sh",
|
|
@@ -40,43 +41,61 @@
|
|
|
40
41
|
"css/"
|
|
41
42
|
],
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@ionic/core": "8.8.19-dev.
|
|
44
|
+
"@ionic/core": "8.8.19-dev.11786730389.1a1927bf",
|
|
45
|
+
"@stencil/react-output-target": "^1.5.2",
|
|
44
46
|
"ionicons": "^8.0.13",
|
|
45
47
|
"tslib": "*"
|
|
46
48
|
},
|
|
47
49
|
"peerDependencies": {
|
|
48
|
-
"react": "
|
|
49
|
-
"react-dom": "
|
|
50
|
+
"react": "^18 || ^19",
|
|
51
|
+
"react-dom": "^18 || ^19"
|
|
50
52
|
},
|
|
51
53
|
"devDependencies": {
|
|
54
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
55
|
+
"@eslint/js": "^9.0.0",
|
|
52
56
|
"@ionic/eslint-config": "^0.3.0",
|
|
53
57
|
"@ionic/prettier-config": "^2.0.0",
|
|
54
58
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
55
|
-
"@testing-library/
|
|
56
|
-
"@testing-library/
|
|
57
|
-
"@testing-library/react
|
|
59
|
+
"@testing-library/dom": "^10.4.1",
|
|
60
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
61
|
+
"@testing-library/react": "^16.3.2",
|
|
58
62
|
"@types/jest": "^26.0.15",
|
|
59
|
-
"@types/node": "^
|
|
60
|
-
"@types/react": "^
|
|
61
|
-
"@types/react-dom": "^
|
|
62
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
63
|
-
"@typescript-eslint/parser": "^
|
|
64
|
-
"eslint": "^
|
|
63
|
+
"@types/node": "^24.13.3",
|
|
64
|
+
"@types/react": "^18.3.28",
|
|
65
|
+
"@types/react-dom": "^18.3.7",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
67
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
68
|
+
"eslint": "^9.0.0",
|
|
69
|
+
"eslint-plugin-import": "^2.31.0",
|
|
65
70
|
"fs-extra": "^9.0.1",
|
|
66
71
|
"jest": "^29.7.0",
|
|
67
72
|
"jest-environment-jsdom": "^29.7.0",
|
|
68
|
-
"np": "^6.4.0",
|
|
69
73
|
"prettier": "^2.8.3",
|
|
70
|
-
"react": "^
|
|
71
|
-
"react-dom": "^
|
|
74
|
+
"react": "^18.3.1",
|
|
75
|
+
"react-dom": "^18.3.1",
|
|
72
76
|
"rimraf": "^3.0.2",
|
|
73
77
|
"rollup": "^4.2.0",
|
|
74
|
-
"ts-jest": "^29.
|
|
75
|
-
"typescript": "^
|
|
78
|
+
"ts-jest": "^29.4.0",
|
|
79
|
+
"typescript": "^6.0.0"
|
|
80
|
+
},
|
|
81
|
+
"overrides": {
|
|
82
|
+
"@ionic/eslint-config": {
|
|
83
|
+
"@typescript-eslint/parser": "$@typescript-eslint/parser",
|
|
84
|
+
"@typescript-eslint/eslint-plugin": "$@typescript-eslint/eslint-plugin",
|
|
85
|
+
"eslint-plugin-import": "$eslint-plugin-import"
|
|
86
|
+
}
|
|
76
87
|
},
|
|
77
88
|
"jest": {
|
|
78
89
|
"testEnvironment": "jsdom",
|
|
79
90
|
"preset": "ts-jest",
|
|
91
|
+
"transform": {
|
|
92
|
+
"^.+\\.tsx?$": [
|
|
93
|
+
"ts-jest",
|
|
94
|
+
{
|
|
95
|
+
"tsconfig": "tsconfig.spec.json"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
80
99
|
"setupFilesAfterEnv": [
|
|
81
100
|
"<rootDir>/jest.setup.js"
|
|
82
101
|
],
|