Skip to content

Commit

Permalink
chore: update dependencies, expect storybook
Browse files Browse the repository at this point in the history
the new version of storybook introduces some error
  • Loading branch information
JonasKellerer committed Feb 15, 2024
1 parent 203a219 commit 89af159
Show file tree
Hide file tree
Showing 12 changed files with 1,710 additions and 2,150 deletions.
2 changes: 1 addition & 1 deletion components/dev/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion components/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>

<html>
<head>
Expand Down
3,761 changes: 1,645 additions & 2,116 deletions components/package-lock.json

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,40 +30,41 @@
"lit"
],
"dependencies": {
"@floating-ui/dom": "^1.5.3",
"@floating-ui/dom": "^1.6.3",
"@lit/context": "^1.1.0",
"@lit/task": "^1.0.0",
"chart.js": "^4.4.0",
"chart.js": "^4.4.1",
"dayjs": "^1.11.10",
"lit": "^3.0.0"
"lit": "^3.1.2"
},
"devDependencies": {
"@custom-elements-manifest/analyzer": "^0.6.3",
"@open-wc/testing": "^3.1.5",
"@rollup/plugin-node-resolve": "^13.3.0",
"@custom-elements-manifest/analyzer": "^0.9.0",
"@open-wc/testing": "^4.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.2",
"@storybook/addon-essentials": "^7.5.3",
"@storybook/addon-links": "^7.5.3",
"@storybook/blocks": "^7.5.3",
"@storybook/web-components": "^7.5.3",
"@storybook/web-components-vite": "^7.5.3",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"@web/dev-server": "^0.1.31",
"@web/dev-server-legacy": "^1.0.0",
"@web/test-runner": "^0.15.0",
"@web/test-runner-playwright": "^0.9.0",
"@types/mocha": "^10.0.6",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@web/dev-server": "^0.4.2",
"@web/dev-server-legacy": "^2.1.0",
"@web/test-runner": "^0.18.0",
"@web/test-runner-playwright": "^0.11.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"eslint": "^8.15.0",
"eslint": "^8.56.0",
"eslint-plugin-storybook": "^0.6.15",
"lit-analyzer": "^1.2.1",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"lit-analyzer": "^2.0.3",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^2.73.0",
"rollup-plugin-summary": "^1.4.3",
"rollup-plugin-summary": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"storybook": "^7.5.3",
"typescript": "~5.2.0"
"typescript": "~5.3.3"
},
"customElements": "custom-elements.json"
}
13 changes: 7 additions & 6 deletions components/src/components/mutations-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ export class MutationsGrid extends LitElement {
return html`<tr>
<td class="position">${d.position}</td>
${bs.map(
(b) => html` <td
class=${(referenceBases.get(d.position) === b ? 'reference ' : '') +
(d.proportions.get(b)! < 0.0001 ? 'low' : '')}
>
${formatProportion(d.proportions.get(b)!)}
</td>`,
(b) =>
html` <td
class=${(referenceBases.get(d.position) === b ? 'reference ' : '') +
(d.proportions.get(b)! < 0.0001 ? 'low' : '')}
>
${formatProportion(d.proportions.get(b)!)}
</td>`,
)}
</tr> `;
})}
Expand Down
12 changes: 10 additions & 2 deletions components/src/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ export class Substitution implements Mutation {
export class Deletion implements Mutation {
readonly code = `${this.segment ? this.segment + ':' : ''}${this.ref}${this.position}-`;

constructor(readonly segment: string | undefined, readonly ref: string, readonly position: number) {}
constructor(
readonly segment: string | undefined,
readonly ref: string,
readonly position: number,
) {}

toString() {
return this.code;
Expand All @@ -110,7 +114,11 @@ export class Deletion implements Mutation {
export class Insertion implements Mutation {
readonly code = `ins_${this.segment ? this.segment + ':' : ''}${this.position}:${this.value}`;

constructor(readonly segment: string | undefined, readonly position: number, readonly value: string) {}
constructor(
readonly segment: string | undefined,
readonly position: number,
readonly value: string,
) {}

toString() {
return this.code;
Expand Down
5 changes: 4 additions & 1 deletion components/src/operator/FetchAggregatedOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import { Dataset } from './Dataset';
import { LapisFilter } from '../types';

export class FetchAggregatedOperator<Fields> implements Operator<Fields & { count: number }> {
constructor(private filter: LapisFilter, private fields: string[]) {}
constructor(
private filter: LapisFilter,
private fields: string[],
) {}

async evaluate(lapis: string, signal?: AbortSignal): Promise<Dataset<Fields & { count: number }>> {
const params = new URLSearchParams(this.filter);
Expand Down
6 changes: 5 additions & 1 deletion components/src/operator/FetchMutationsOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { LapisFilter, SequenceType } from '../types';
import { Deletion, Insertion, MutationCache, Substitution } from '../mutations';

export class FetchMutationsOperator implements Operator<MutationEntry> {
constructor(private filter: LapisFilter, private sequenceType: SequenceType, private minProportion?: number) {}
constructor(
private filter: LapisFilter,
private sequenceType: SequenceType,
private minProportion?: number,
) {}

async evaluate(lapis: string, signal?: AbortSignal): Promise<Dataset<MutationEntry>> {
const [lapisMutations, lapisInsertions] = await Promise.all([
Expand Down
6 changes: 5 additions & 1 deletion components/src/operator/GroupByOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { Operator } from './Operator';
import { Dataset } from './Dataset';

export class GroupByOperator<T, S, K extends keyof T> implements Operator<S> {
constructor(private child: Operator<T>, private field: K, private aggregate: (values: T[]) => S) {}
constructor(
private child: Operator<T>,
private field: K,
private aggregate: (values: T[]) => S,
) {}

async evaluate(lapis: string, signal?: AbortSignal): Promise<Dataset<S>> {
const childEvaluated = await this.child.evaluate(lapis, signal);
Expand Down
5 changes: 4 additions & 1 deletion components/src/operator/MapOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Operator } from './Operator';
import { Dataset } from './Dataset';

export class MapOperator<S, T> implements Operator<T> {
constructor(private child: Operator<S>, private func: (value: S) => T) {}
constructor(
private child: Operator<S>,
private func: (value: S) => T,
) {}

async evaluate(lapis: string, signal?: AbortSignal): Promise<Dataset<T>> {
const childEvaluated = await this.child.evaluate(lapis, signal);
Expand Down
6 changes: 5 additions & 1 deletion components/src/operator/SlidingOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { Operator } from './Operator';
import { Dataset } from './Dataset';

export class SlidingOperator<T, S> implements Operator<S> {
constructor(private child: Operator<T>, private windowSize: number, private aggregate: (values: T[]) => S) {
constructor(
private child: Operator<T>,
private windowSize: number,
private aggregate: (values: T[]) => S,
) {
if (windowSize < 1) {
throw new Error('Window size must be at least 1');
}
Expand Down
5 changes: 4 additions & 1 deletion components/src/operator/SortOperator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Operator } from './Operator';
import { Dataset } from './Dataset';

export class SortOperator<S> implements Operator<S> {
constructor(private child: Operator<S>, private compareFn: (a: S, b: S) => number) {}
constructor(
private child: Operator<S>,
private compareFn: (a: S, b: S) => number,
) {}

async evaluate(lapis: string, signal?: AbortSignal): Promise<Dataset<S>> {
const childEvaluated = await this.child.evaluate(lapis, signal);
Expand Down

0 comments on commit 89af159

Please sign in to comment.