@genspectrum/dashboard-components 1.3.1 → 1.4.0

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.
package/dist/util.d.ts CHANGED
@@ -915,6 +915,22 @@ declare global {
915
915
  }
916
916
 
917
917
 
918
+ declare global {
919
+ interface HTMLElementTagNameMap {
920
+ 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
921
+ }
922
+ }
923
+
924
+
925
+ declare global {
926
+ namespace JSX {
927
+ interface IntrinsicElements {
928
+ 'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
929
+ }
930
+ }
931
+ }
932
+
933
+
918
934
  declare global {
919
935
  interface HTMLElementTagNameMap {
920
936
  'gs-genome-data-viewer': GenomeDataViewerComponent;
@@ -1045,7 +1061,7 @@ declare global {
1045
1061
 
1046
1062
  declare global {
1047
1063
  interface HTMLElementTagNameMap {
1048
- 'gs-statistics': StatisticsComponent;
1064
+ 'gs-sequences-by-location': SequencesByLocationComponent;
1049
1065
  }
1050
1066
  }
1051
1067
 
@@ -1053,7 +1069,7 @@ declare global {
1053
1069
  declare global {
1054
1070
  namespace JSX {
1055
1071
  interface IntrinsicElements {
1056
- 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1072
+ 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1057
1073
  }
1058
1074
  }
1059
1075
  }
@@ -1061,7 +1077,7 @@ declare global {
1061
1077
 
1062
1078
  declare global {
1063
1079
  interface HTMLElementTagNameMap {
1064
- 'gs-sequences-by-location': SequencesByLocationComponent;
1080
+ 'gs-statistics': StatisticsComponent;
1065
1081
  }
1066
1082
  }
1067
1083
 
@@ -1069,7 +1085,7 @@ declare global {
1069
1085
  declare global {
1070
1086
  namespace JSX {
1071
1087
  interface IntrinsicElements {
1072
- 'gs-sequences-by-location': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1088
+ 'gs-statistics': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1073
1089
  }
1074
1090
  }
1075
1091
  }
@@ -1077,11 +1093,10 @@ declare global {
1077
1093
 
1078
1094
  declare global {
1079
1095
  interface HTMLElementTagNameMap {
1080
- 'gs-date-range-filter': DateRangeFilterComponent;
1096
+ 'gs-location-filter': LocationFilterComponent;
1081
1097
  }
1082
1098
  interface HTMLElementEventMap {
1083
- [gsEventNames.dateRangeFilterChanged]: CustomEvent<Record<string, string>>;
1084
- [gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
1099
+ [gsEventNames.locationChanged]: LocationChangedEvent;
1085
1100
  }
1086
1101
  }
1087
1102
 
@@ -1089,7 +1104,7 @@ declare global {
1089
1104
  declare global {
1090
1105
  namespace JSX {
1091
1106
  interface IntrinsicElements {
1092
- 'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1107
+ 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1093
1108
  }
1094
1109
  }
1095
1110
  }
@@ -1097,7 +1112,11 @@ declare global {
1097
1112
 
1098
1113
  declare global {
1099
1114
  interface HTMLElementTagNameMap {
1100
- 'gs-wastewater-mutations-over-time': WastewaterMutationsOverTimeComponent;
1115
+ 'gs-date-range-filter': DateRangeFilterComponent;
1116
+ }
1117
+ interface HTMLElementEventMap {
1118
+ [gsEventNames.dateRangeFilterChanged]: CustomEvent<Record<string, string>>;
1119
+ [gsEventNames.dateRangeOptionChanged]: DateRangeOptionChangedEvent;
1101
1120
  }
1102
1121
  }
1103
1122
 
@@ -1105,7 +1124,7 @@ declare global {
1105
1124
  declare global {
1106
1125
  namespace JSX {
1107
1126
  interface IntrinsicElements {
1108
- 'gs-wastewater-mutations-over-time': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1127
+ 'gs-date-range-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1109
1128
  }
1110
1129
  }
1111
1130
  }
@@ -1113,10 +1132,10 @@ declare global {
1113
1132
 
1114
1133
  declare global {
1115
1134
  interface HTMLElementTagNameMap {
1116
- 'gs-location-filter': LocationFilterComponent;
1135
+ 'gs-text-filter': TextFilterComponent;
1117
1136
  }
1118
1137
  interface HTMLElementEventMap {
1119
- [gsEventNames.locationChanged]: LocationChangedEvent;
1138
+ [gsEventNames.textFilterChanged]: TextFilterChangedEvent;
1120
1139
  }
1121
1140
  }
1122
1141
 
@@ -1124,7 +1143,7 @@ declare global {
1124
1143
  declare global {
1125
1144
  namespace JSX {
1126
1145
  interface IntrinsicElements {
1127
- 'gs-location-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1146
+ 'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1128
1147
  }
1129
1148
  }
1130
1149
  }
@@ -1149,25 +1168,6 @@ declare global {
1149
1168
  }
1150
1169
 
1151
1170
 
1152
- declare global {
1153
- interface HTMLElementTagNameMap {
1154
- 'gs-text-filter': TextFilterComponent;
1155
- }
1156
- interface HTMLElementEventMap {
1157
- [gsEventNames.textFilterChanged]: TextFilterChangedEvent;
1158
- }
1159
- }
1160
-
1161
-
1162
- declare global {
1163
- namespace JSX {
1164
- interface IntrinsicElements {
1165
- 'gs-text-filter': DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement>;
1166
- }
1167
- }
1168
- }
1169
-
1170
-
1171
1171
  declare global {
1172
1172
  interface HTMLElementTagNameMap {
1173
1173
  'gs-lineage-filter': LineageFilterComponent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genspectrum/dashboard-components",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "GenSpectrum web components for building dashboards",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
@@ -8,7 +8,7 @@ import { type useMutationAnnotationsProvider } from '../MutationAnnotationsConte
8
8
  import type { DisplayedMutationType } from '../components/mutation-type-selector';
9
9
  import type { DisplayedSegment } from '../components/segment-selector';
10
10
 
11
- export const displayMutationsSchema = z.array(z.string()).min(1);
11
+ export const displayMutationsSchema = z.array(z.string());
12
12
  export type DisplayMutations = z.infer<typeof displayMutationsSchema>;
13
13
 
14
14
  export type MutationFilter = {
@@ -25983,7 +25983,7 @@ class ik extends nk {
25983
25983
  super(i$, r$, e);
25984
25984
  }
25985
25985
  }
25986
- const s$ = T.array(T.string()).min(1);
25986
+ const s$ = T.array(T.string());
25987
25987
  function a$({
25988
25988
  data: n,
25989
25989
  overallMutationData: e,