-
Notifications
You must be signed in to change notification settings - Fork 0
feat(components): bump react from 18.3.1 to 19.0.0 in /components #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
792c3aa
0ad3a22
4a89b47
9040a57
f1c7c6e
2122885
e6e7536
8692816
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| import flatpickrStyle from 'flatpickr/dist/flatpickr.css?inline'; | ||
| import { unsafeCSS } from 'lit'; | ||
| import { customElement, property } from 'lit/decorators.js'; | ||
| import type { DetailedHTMLProps, HTMLAttributes } from 'react'; | ||
|
|
||
| import { DateRangeFilter, type DateRangeFilterProps } from '../../preact/dateRangeFilter/date-range-filter'; | ||
| import { type DateRangeOptionChangedEvent } from '../../preact/dateRangeFilter/dateRangeOption'; | ||
|
|
@@ -144,9 +143,9 @@ declare global { | |
|
|
||
| declare global { | ||
| // eslint-disable-next-line @typescript-eslint/no-namespace | ||
| namespace JSX { | ||
| namespace React.JSX { | ||
| interface IntrinsicElements { | ||
| 'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>; | ||
| 'gs-date-range-filter': DateRangeFilterComponent; | ||
| } | ||
|
Comment on lines
+146
to
149
|
||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,4 @@ | ||
| import { customElement, property } from 'lit/decorators.js'; | ||
| import type { DetailedHTMLProps, HTMLAttributes } from 'react'; | ||
|
|
||
| import { type LocationChangedEvent } from '../../preact/locationFilter/LocationChangedEvent'; | ||
| import { LocationFilter, type LocationFilterProps } from '../../preact/locationFilter/location-filter'; | ||
|
|
@@ -110,9 +109,9 @@ declare global { | |
|
|
||
| declare global { | ||
| // eslint-disable-next-line @typescript-eslint/no-namespace | ||
| namespace JSX { | ||
| namespace React.JSX { | ||
| interface IntrinsicElements { | ||
| 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>; | ||
| 'gs-location-filter': LocationFilterComponent; | ||
| } | ||
| } | ||
|
Comment on lines
+112
to
116
|
||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React.JSX.IntrinsicElements['gs-app']is set toAppComponent, but that type doesn’t include standard JSX/DOM props (e.g.ref,children,className,style, event handlers). This will cause TypeScript errors for React consumers (and the React example) when using<gs-app>with children or refs. Define the intrinsic element type as React’s DOM props for the element (soref/childrenare included) and intersect/augment it with the component’s custom properties instead of using the element class directly as the props type.