Skip to content
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

chore(components): bump react from 18.3.1 to 19.0.0 in /components #673

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 67 additions & 35 deletions components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"msw": "^2.2.14",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"react": "^18.3.1",
"react": "^19.0.0",
"storybook": "^8.0.9",
"storybook-addon-fetch-mock": "^2.0.0",
"tailwindcss": "^3.4.3",
Expand Down
9 changes: 6 additions & 3 deletions components/src/web-components/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { provide } from '@lit/context';
import { Task } from '@lit/task';
import { html, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
import z from 'zod';

import { lapisContext } from './lapis-context';
Expand Down Expand Up @@ -88,11 +87,15 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-app': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-app': {
lapis: string;
// eslint-disable-next-line no-undef
children: React.ReactNode;
};
}
}
}
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 { DateRangeSelector, type DateRangeSelectorProps } from '../../preact/dateRangeSelector/date-range-selector';
import { type DateRangeOptionChangedEvent } from '../../preact/dateRangeSelector/dateRangeOption';
Expand Down Expand Up @@ -134,11 +133,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-date-range-selector': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-date-range-selector': Partial<DateRangeSelectorProps>;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions components/src/web-components/input/gs-lineage-filter.tsx
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 LineageFilterChangedEvent } from '../../preact/lineageFilter/LineageFilterChangedEvent';
import { LineageFilter, type LineageFilterProps } from '../../preact/lineageFilter/lineage-filter';
Expand Down Expand Up @@ -95,11 +94,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-lineage-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-lineage-filter': Partial<LineageFilterProps>;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions components/src/web-components/input/gs-location-filter.tsx
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';
Expand Down Expand Up @@ -99,11 +98,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-location-filter': Partial<LocationFilterProps>;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions components/src/web-components/input/gs-mutation-filter.tsx
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 { ReferenceGenomesAwaiter } from '../../preact/components/ReferenceGenomesAwaiter';
import { MutationFilter, type MutationFilterProps } from '../../preact/mutationFilter/mutation-filter';
Expand Down Expand Up @@ -99,11 +98,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-mutation-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-mutation-filter': Partial<MutationFilterProps>;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions components/src/web-components/input/gs-text-input.tsx
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 TextInputChangedEvent } from '../../preact/textInput/TextInputChangedEvent';
import { TextInput, type TextInputProps } from '../../preact/textInput/text-input';
Expand Down Expand Up @@ -89,11 +88,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-text-input': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-text-input': Partial<TextInputProps>;
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions components/src/web-components/visualization/gs-aggregate.tsx
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 { Aggregate, type AggregateProps, type AggregateView } from '../../preact/aggregatedData/aggregate';
import { type Equals, type Expect } from '../../utils/typeAssertions';
Expand Down Expand Up @@ -126,11 +125,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-aggregate': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-aggregate': Partial<AggregateProps>;
}
}
}
Expand Down
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 { MutationComparison, type MutationComparisonProps } from '../../preact/mutationComparison/mutation-comparison';
import { type Equals, type Expect } from '../../utils/typeAssertions';
Expand Down Expand Up @@ -108,11 +107,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-mutation-comparison-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-mutation-comparison': Partial<MutationComparisonProps>;
}
}
}
Expand Down
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 { MutationsOverTime, type MutationsOverTimeProps } from '../../preact/mutationsOverTime/mutations-over-time';
import type { Equals, Expect } from '../../utils/typeAssertions';
Expand Down Expand Up @@ -108,11 +107,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-mutations-over-time': Partial<MutationsOverTimeProps>;
}
}
}
Expand Down
17 changes: 8 additions & 9 deletions components/src/web-components/visualization/gs-mutations.tsx
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 { Mutations, type MutationsProps } from '../../preact/mutations/mutations';
import type { Equals, Expect } from '../../utils/typeAssertions';
Expand Down Expand Up @@ -75,14 +74,14 @@ export class MutationsComponent extends PreactLitAdapterWithGridJsStyles {
* If not provided, the Jaccard similarity is not computed.
* For details, see the [Jaccard Similarity](#jaccard-similarity) section in the component description.
*/
@property({ type: Object })
@property({type: Object})
baselineLapisFilter:
(Record<string, string | string[] | number | null | boolean | undefined> & {
nucleotideMutations?: string[];
aminoAcidMutations?: string[];
nucleotideInsertions?: string[];
aminoAcidInsertions?: string[];
})
nucleotideMutations?: string[];
aminoAcidMutations?: string[];
nucleotideInsertions?: string[];
aminoAcidInsertions?: string[];
})
| undefined = undefined;

/**
Expand Down Expand Up @@ -141,11 +140,11 @@ declare global {
}
}

declare global {
declare module 'react' {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'gs-mutations-component': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
'gs-mutations': Partial<MutationsProps>;
}
}
}
Expand Down
Loading
Loading