@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.
@@ -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<Pick<LocalJSX.IonRouterOutlet & {
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">, "children" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | keyof IonicReactProps | keyof LocalJSX.IonRouterOutlet | "basePath" | "ionPage"> & React.RefAttributes<HTMLIonRouterOutletElement>>;
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<{
@@ -33,6 +33,6 @@ export declare class NavManager extends React.PureComponent<NavManagerProps, Nav
33
33
  getIonRedirect(): any;
34
34
  getIonRoute(): any;
35
35
  getStackManager(): any;
36
- render(): JSX.Element;
36
+ render(): React.JSX.Element;
37
37
  }
38
38
  export {};
@@ -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-nightly.20240319",
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-nightly.20240319",
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": "^11.2.2",
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": "16.14.0",
60
- "@types/react-dom": "^16.9.0",
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": "^16.9.0",
69
- "react-dom": "^16.9.0",
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",