@ionic/react 7.8.1-nightly.20240319 → 7.8.1
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/dist/types/components/CreateAnimation.d.ts +1 -1
- package/dist/types/components/IonApp.d.ts +1 -1
- package/dist/types/components/IonRedirect.d.ts +1 -1
- package/dist/types/components/IonRoute.d.ts +1 -1
- package/dist/types/components/IonRouterOutlet.d.ts +2 -2
- package/dist/types/components/navigation/IonBackButton.d.ts +2 -2
- package/dist/types/components/navigation/IonTabButton.d.ts +1 -1
- package/dist/types/components/navigation/IonTabs.d.ts +1 -1
- package/dist/types/lifecycle/IonLifeCycleHOC.d.ts +1 -1
- package/dist/types/routing/NavManager.d.ts +1 -1
- package/dist/types/routing/OutletPageManager.d.ts +1 -1
- package/dist/types/routing/PageManager.d.ts +1 -1
- package/dist/types/routing/ViewLifeCycleManager.d.ts +1 -1
- package/package.json +7 -7
|
@@ -66,6 +66,6 @@ export declare class CreateAnimation extends React.PureComponent<PropsWithChildr
|
|
|
66
66
|
setupAnimation(props: any): void;
|
|
67
67
|
componentDidMount(): void;
|
|
68
68
|
componentDidUpdate(prevProps: any): void;
|
|
69
|
-
render(): JSX.Element;
|
|
69
|
+
render(): React.JSX.Element;
|
|
70
70
|
}
|
|
71
71
|
export {};
|
|
@@ -11,7 +11,7 @@ export declare const IonApp: {
|
|
|
11
11
|
addOverlayCallback?: ((id: string, overlay: ReactComponentOrElement, containerElement: HTMLDivElement) => void) | undefined;
|
|
12
12
|
removeOverlayCallback?: ((id: string) => void) | undefined;
|
|
13
13
|
ionContext: IonContextInterface;
|
|
14
|
-
render(): JSX.Element;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
15
|
context: any;
|
|
16
16
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
17
17
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -10,7 +10,7 @@ interface IonRedirectState {
|
|
|
10
10
|
}
|
|
11
11
|
export declare class IonRedirect extends React.PureComponent<IonRedirectProps, IonRedirectState> {
|
|
12
12
|
context: React.ContextType<typeof NavContext>;
|
|
13
|
-
render(): JSX.Element | null;
|
|
13
|
+
render(): React.JSX.Element | null;
|
|
14
14
|
static get contextType(): React.Context<import("../contexts/NavContext").NavContextState>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
|
@@ -11,7 +11,7 @@ interface IonRouteState {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class IonRoute extends React.PureComponent<IonRouteProps, IonRouteState> {
|
|
13
13
|
context: React.ContextType<typeof NavContext>;
|
|
14
|
-
render(): JSX.Element | null;
|
|
14
|
+
render(): React.JSX.Element | null;
|
|
15
15
|
static get contextType(): React.Context<import("../contexts/NavContext").NavContextState>;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { JSX as LocalJSX } from '@ionic/core/components';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import type { IonicReactProps } from './IonicReactProps';
|
|
4
|
-
export declare const IonRouterOutlet: React.ForwardRefExoticComponent<
|
|
4
|
+
export declare const IonRouterOutlet: React.ForwardRefExoticComponent<Omit<LocalJSX.IonRouterOutlet & {
|
|
5
5
|
basePath?: string | undefined;
|
|
6
6
|
ref?: React.Ref<any> | undefined;
|
|
7
7
|
ionPage?: boolean | undefined;
|
|
8
|
-
} & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style" | "placeholder">, "
|
|
8
|
+
} & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style" | "placeholder">, "ref"> & React.RefAttributes<HTMLIonRouterOutletElement>>;
|
|
@@ -13,7 +13,7 @@ export declare const IonBackButton: {
|
|
|
13
13
|
new (props: Props | Readonly<Props>): {
|
|
14
14
|
context: React.ContextType<typeof NavContext>;
|
|
15
15
|
clickButton: (e: React.MouseEvent) => void;
|
|
16
|
-
render(): JSX.Element;
|
|
16
|
+
render(): React.JSX.Element;
|
|
17
17
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
18
18
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
19
19
|
readonly props: Readonly<Props> & Readonly<{
|
|
@@ -39,7 +39,7 @@ export declare const IonBackButton: {
|
|
|
39
39
|
new (props: Props, context: any): {
|
|
40
40
|
context: React.ContextType<typeof NavContext>;
|
|
41
41
|
clickButton: (e: React.MouseEvent) => void;
|
|
42
|
-
render(): JSX.Element;
|
|
42
|
+
render(): React.JSX.Element;
|
|
43
43
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
44
44
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
45
45
|
readonly props: Readonly<Props> & Readonly<{
|
|
@@ -10,7 +10,7 @@ type Props = LocalJSX.IonTabButton & IonicReactProps & {
|
|
|
10
10
|
export declare const IonTabButton: {
|
|
11
11
|
new (props: Props): {
|
|
12
12
|
handleIonTabButtonClick(): void;
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
14
|
context: any;
|
|
15
15
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
16
16
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -22,7 +22,7 @@ export declare const IonTabs: {
|
|
|
22
22
|
tabBarRef: React.RefObject<any>;
|
|
23
23
|
ionTabContextState: IonTabsContextState;
|
|
24
24
|
componentDidMount(): void;
|
|
25
|
-
render(): JSX.Element;
|
|
25
|
+
render(): React.JSX.Element;
|
|
26
26
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Props>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
27
27
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
28
28
|
readonly props: Readonly<Props> & Readonly<{
|
|
@@ -5,7 +5,7 @@ export declare const withIonLifeCycle: (WrappedComponent: React.ComponentType<an
|
|
|
5
5
|
context: React.ContextType<typeof IonLifeCycleContext>;
|
|
6
6
|
componentRef: React.RefObject<any>;
|
|
7
7
|
componentDidMount(): void;
|
|
8
|
-
render(): JSX.Element;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
9
|
setState<K extends string | number | symbol>(state: any, callback?: (() => void) | undefined): void;
|
|
10
10
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
11
11
|
readonly props: Readonly<any> & Readonly<{
|
|
@@ -20,7 +20,7 @@ export declare class OutletPageManager extends React.Component<OutletPageManager
|
|
|
20
20
|
ionViewDidEnterHandler(): void;
|
|
21
21
|
ionViewWillLeaveHandler(): void;
|
|
22
22
|
ionViewDidLeaveHandler(): void;
|
|
23
|
-
render(): JSX.Element;
|
|
23
|
+
render(): React.JSX.Element;
|
|
24
24
|
static get contextType(): React.Context<import("./StackContext").StackContextState>;
|
|
25
25
|
}
|
|
26
26
|
export default OutletPageManager;
|
|
@@ -19,7 +19,7 @@ export declare class PageManager extends React.PureComponent<PageManagerProps> {
|
|
|
19
19
|
ionViewDidEnterHandler(): void;
|
|
20
20
|
ionViewWillLeaveHandler(): void;
|
|
21
21
|
ionViewDidLeaveHandler(): void;
|
|
22
|
-
render(): JSX.Element;
|
|
22
|
+
render(): React.JSX.Element;
|
|
23
23
|
static get contextType(): React.Context<import("./StackContext").StackContextState>;
|
|
24
24
|
}
|
|
25
25
|
export default PageManager;
|
|
@@ -37,6 +37,6 @@ export declare class ViewLifeCycleManager extends React.Component<ViewTransition
|
|
|
37
37
|
constructor(props: ViewTransitionManagerProps);
|
|
38
38
|
componentDidMount(): void;
|
|
39
39
|
componentWillUnmount(): void;
|
|
40
|
-
render(): JSX.Element;
|
|
40
|
+
render(): React.JSX.Element;
|
|
41
41
|
}
|
|
42
42
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ionic/react",
|
|
3
|
-
"version": "7.8.1
|
|
3
|
+
"version": "7.8.1",
|
|
4
4
|
"description": "React specific wrapper for @ionic/core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ionic",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"css/"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@ionic/core": "7.8.1
|
|
42
|
+
"@ionic/core": "7.8.1",
|
|
43
43
|
"ionicons": "^7.0.0",
|
|
44
44
|
"tslib": "*"
|
|
45
45
|
},
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"@ionic/prettier-config": "^2.0.0",
|
|
53
53
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
54
54
|
"@testing-library/jest-dom": "^5.11.6",
|
|
55
|
-
"@testing-library/react": "^
|
|
55
|
+
"@testing-library/react": "^12.1.5",
|
|
56
56
|
"@testing-library/react-hooks": "^7.0.1",
|
|
57
57
|
"@types/jest": "^26.0.15",
|
|
58
58
|
"@types/node": "^14.0.14",
|
|
59
|
-
"@types/react": "
|
|
60
|
-
"@types/react-dom": "^
|
|
59
|
+
"@types/react": "^17.0.79",
|
|
60
|
+
"@types/react-dom": "^17.0.25",
|
|
61
61
|
"@typescript-eslint/eslint-plugin": "^5.48.2",
|
|
62
62
|
"@typescript-eslint/parser": "^5.48.2",
|
|
63
63
|
"eslint": "^7.32.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"jest": "^26.6.3",
|
|
66
66
|
"np": "^6.4.0",
|
|
67
67
|
"prettier": "^2.8.3",
|
|
68
|
-
"react": "^
|
|
69
|
-
"react-dom": "^
|
|
68
|
+
"react": "^17.0.2",
|
|
69
|
+
"react-dom": "^17.0.2",
|
|
70
70
|
"rimraf": "^3.0.2",
|
|
71
71
|
"rollup": "^4.2.0",
|
|
72
72
|
"ts-jest": "^26.4.4",
|