Maria Hutt
bacded500b
fix(react): intellisense works with IntelliJ ( #29782 )
...
Issue number: resolves #29755
---------
<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->
<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
Types do not generate when a React app is opened in IntelliJ IDE.
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- Updated `stencil/react-output-target` to the latest
- Updated the stencil config file
- Updated `jest`, `ts-jest`, and `typescript` because of the changes in
`packages/react/tsconfig.json`
- Installed `jest-environment-jsdom` because Jest 26 no longer ships it
by default since the test environment is now node by default. The test
environment needs to be changed to `jsdom` when [building a web
app](https://jestjs.io/docs/configuration#testenvironment-string ).


## Does this introduce a breaking change?
- [ ] Yes
- [x] No
<!--
If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->
No visual changes are introduced and there will be no changes needed by
developers. Their apps will continue to work as is.
## Other information
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
Dev build: 8.2.8-dev.11724100788.103018f2
2024-08-20 19:10:12 +00:00
ionitron
43ff02c100
v8.2.7
2024-08-13 18:36:38 +00:00
Brandy Carney
454e509cea
merge release-8.2.6 ( #29730 )
...
v8.2.6
---------
Co-authored-by: ionitron <hi@ionicframework.com >
2024-07-24 16:23:11 -04:00
ionitron
3f9ae8405b
v8.2.5
2024-07-03 14:05:17 +00:00
ionitron
2ec47e3a93
v8.2.4
2024-06-28 15:10:48 +00:00
Brandy Carney
085c243942
v8.2.3
2024-06-28 10:50:41 -04:00
ionitron
3514bfe07b
v8.2.2
2024-06-12 21:20:50 +00:00
ionitron
868ebb7d26
v8.2.1
2024-06-05 16:16:50 +00:00
ionitron
f238b4258c
v8.2.0
2024-05-22 17:11:10 +00:00
ionitron
85728b7b35
v8.1.3
2024-05-22 16:16:15 +00:00
ionitron
b298c0e015
v8.1.2
2024-05-15 12:27:50 -04:00
Brandy Carney
217f5bd123
merge release-8.1.1 ( #29473 )
2024-05-08 14:42:40 -04:00
ionitron
78d3076703
v8.1.0
2024-05-01 14:33:41 +00:00
ionitron
101b50e14c
v8.0.2
2024-05-01 13:59:14 +00:00
ionitron
fa60838702
v8.0.1
2024-04-24 13:45:04 +00:00
ionitron
bf1ae7b6fe
v8.0.0
2024-04-17 13:51:23 +00:00
ionitron
73af759906
v8.0.0-rc.2
2024-04-17 13:27:08 +00:00
Liam DeBeasi
8259cd0cd9
chore: clean up changelog
2024-04-10 10:18:14 -04:00
ionitron
ea8e220861
v8.0.0-rc.1
2024-04-10 14:11:56 +00:00
Liam DeBeasi
ac7631a324
chore: sync with main
2024-04-03 13:17:55 -04:00
ionitron
de35fa8b94
v7.8.3
2024-04-03 15:38:11 +00:00
ionitron
8ab116150c
v8.0.0-rc.0
2024-03-27 15:23:52 +00:00
ionitron
6ebb3c4e38
v8.0.0-beta.4
2024-03-27 14:56:50 +00:00
Liam DeBeasi
652ea169b7
chore: update package-lock
2024-03-27 10:29:57 -04:00
ionitron
eeab96de55
v7.8.2
2024-03-27 13:33:47 +00:00
ionitron
48abe43a85
v8.0.0-beta.3
2024-03-20 14:36:07 +00:00
Liam DeBeasi
3057ab5217
chore: update package-lock
2024-03-20 10:15:35 -04:00
ionitron
4cd8fb15af
v7.8.1
2024-03-20 13:18:53 +00:00
Liam DeBeasi
e8f63560eb
chore: sync with main
2024-03-19 14:24:51 -04:00
Liam DeBeasi
58d217d0cf
fix(react): avoid definitely typed errors with @types/react@18 ( #29182 )
...
Issue number: resolves #29178
---------
<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->
<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->
## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->
[DefinitelyTyped removed the `onPointerEnterCaptured` and
`onPointerLeaveCaptured` types for
`@types/react`](https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/69006 ).
This caused issues when multiple versions of `@types/react` are
installed where an older version inlined these types, but they did not
exist in newer versions.
For Ionic React, we build with React 16 which did inline the types. In
an Ionic React starter app we build with React 18 which does not want
these types. As a result, there is a type mismatch.
Note that this type change is being [reverted in React
16-17](https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/69006#discussioncomment-8826095 )
so presumably this issue will go away in its own for those versions.
However, developers are building with React 18 too, so this issue will
persist for those developers.
However, React 17 should still have this problem (at least until the
change is reverted), yet the build here passes. The main difference is
that the `onPointer{Enter,Leave}Captured` event is no longer inlined.
After talking with the Stencil team this is the current understanding of
why the issue no longer reproduces.
**Building with React 17**
```ts
import type { JSX as LocalJSX } from '@ionic/core/components';
import React from 'react';
import type { IonicReactProps } from './IonicReactProps';
export declare const IonRouterOutlet: React.ForwardRefExoticComponent<Pick<LocalJSX.IonRouterOutlet & {
basePath?: string | undefined;
ref?: React.Ref<any> | undefined;
ionPage?: boolean | undefined;
} & 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>>;
```
**Building with React 18**
```ts
export declare const IonRouterOutlet: React.ForwardRefExoticComponent<Omit<LocalJSX.IonRouterOutlet & {
basePath?: string | undefined;
ref?: React.Ref<any> | undefined;
ionPage?: boolean | undefined;
} & IonicReactProps & Omit<React.HTMLAttributes<HTMLIonRouterOutletElement>, "style" | "placeholder">, "ref"> & React.RefAttributes<HTMLIonRouterOutletElement>>;
```
## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- Updated types in our React test apps and verified that the [issue
reproduces there without this
fix](https://github.com/ionic-team/ionic-framework/actions/runs/8345186602 ).
- Updated Ionic React and Ionic React Router to build with React 17.
## Does this introduce a breaking change?
- [ ] Yes
- [x] No
Ionic v7 expects React 17 or newer, so building with React 17 instead of
React 16 is not a breaking change.
<!--
If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#footer
for more information.
-->
## Other information
<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
Dev build: `7.8.1-dev.11710859149.114e57ae` Verified with sample repro
2024-03-19 17:36:29 +00:00
ionitron
f392ddd0d4
v8.0.0-beta.2
2024-03-13 14:38:17 +00:00
ionitron
400013d6cb
v7.8.0
2024-03-13 13:47:29 +00:00
ionitron
82e90f28b4
v7.7.5
2024-03-13 13:15:09 +00:00
ionitron
84f7eea26a
v8.0.0-beta.1
2024-03-06 21:26:41 +00:00
ionitron
911519a5f8
v7.7.4
2024-03-06 18:04:51 +00:00
ionitron
1e3f6c78e9
v8.0.0-beta.0
2024-02-28 13:56:42 +00:00
ionitron
3fd66e76b5
v7.7.3
2024-02-21 15:23:45 +00:00
ionitron
ae873e7028
v7.7.2
2024-02-14 14:26:08 +00:00
ionitron
66fcb70151
v7.7.1
2024-02-07 14:20:32 +00:00
ionitron
e672805406
v7.7.0
2024-01-31 15:17:39 +00:00
ionitron
1de5ff9302
v7.6.7
2024-01-31 14:26:24 +00:00
ionitron
0c4e1fcdb4
v7.6.6
2024-01-24 14:15:07 +00:00
ionitron
e2708ff651
v7.6.5
2024-01-17 14:23:09 +00:00
Liam DeBeasi
076c9fed29
merge release-7.6.4
2024-01-10 11:28:13 -05:00
ionitron
ebb9ae9c11
v7.6.3
2024-01-03 14:52:37 +00:00
ionitron
8d841b4225
v7.6.2
2023-12-19 14:45:17 +00:00
ionitron
150ea1a8ad
v7.6.1
2023-12-13 14:27:51 +00:00
ionitron
90ce7f00fa
v7.6.0
2023-12-06 15:33:45 +00:00
ionitron
507d5ee1da
v7.5.8
2023-12-06 15:04:23 +00:00
ionitron
3a35fdd2f5
v7.5.7
2023-11-29 15:05:12 +00:00