@local-civics/mgmt-ui 0.1.215 → 0.1.217
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/index.d.ts +29 -2
- package/dist/index.js +655 -951
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +657 -953
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ type BadgeProps = {
|
|
|
127
127
|
loading: boolean;
|
|
128
128
|
displayName: string;
|
|
129
129
|
description: string;
|
|
130
|
+
imageURL?: string;
|
|
130
131
|
classes: BadgeClass[];
|
|
131
132
|
lessons: Item$m[];
|
|
132
133
|
classId: string;
|
|
@@ -153,6 +154,9 @@ interface Item$l {
|
|
|
153
154
|
badgeId: string;
|
|
154
155
|
name: string;
|
|
155
156
|
description: string;
|
|
157
|
+
imageURL?: string;
|
|
158
|
+
pathway?: string;
|
|
159
|
+
numberOfLessons?: number;
|
|
156
160
|
href: string;
|
|
157
161
|
}
|
|
158
162
|
|
|
@@ -166,7 +170,13 @@ type BadgeItem = Item$l;
|
|
|
166
170
|
type BadgesProps = {
|
|
167
171
|
loading: boolean;
|
|
168
172
|
badges: BadgeItem[];
|
|
173
|
+
pathways: {
|
|
174
|
+
pathwayId: string;
|
|
175
|
+
title: string;
|
|
176
|
+
}[];
|
|
177
|
+
selectedPathway: string;
|
|
169
178
|
onAutocompleteChange: (value: string) => void;
|
|
179
|
+
onPathwayChange: (pathwayId: string) => void;
|
|
170
180
|
};
|
|
171
181
|
/**
|
|
172
182
|
* Badges
|
|
@@ -306,6 +316,9 @@ type ClassProps = {
|
|
|
306
316
|
*/
|
|
307
317
|
declare const Class: (props: ClassProps) => JSX.Element;
|
|
308
318
|
|
|
319
|
+
/**
|
|
320
|
+
* Item
|
|
321
|
+
*/
|
|
309
322
|
type Item$e = {
|
|
310
323
|
href: string;
|
|
311
324
|
classId: string;
|
|
@@ -510,6 +523,7 @@ interface Item$6 {
|
|
|
510
523
|
lessonId: string;
|
|
511
524
|
name: string;
|
|
512
525
|
description: string;
|
|
526
|
+
badge?: string;
|
|
513
527
|
pathway?: string;
|
|
514
528
|
href: string;
|
|
515
529
|
}
|
|
@@ -524,7 +538,13 @@ type LessonItem = Item$6;
|
|
|
524
538
|
type LessonsProps = {
|
|
525
539
|
loading: boolean;
|
|
526
540
|
lessons: LessonItem[];
|
|
541
|
+
pathways: {
|
|
542
|
+
pathwayId: string;
|
|
543
|
+
title: string;
|
|
544
|
+
}[];
|
|
545
|
+
selectedPathway: string;
|
|
527
546
|
onAutocompleteChange: (next: string) => void;
|
|
547
|
+
onPathwayChange: (pathwayId: string) => void;
|
|
528
548
|
};
|
|
529
549
|
/**
|
|
530
550
|
* Lessons
|
|
@@ -594,7 +614,7 @@ type PeopleProps = {
|
|
|
594
614
|
onAutocompleteChange: (next: string) => void;
|
|
595
615
|
};
|
|
596
616
|
/**
|
|
597
|
-
*
|
|
617
|
+
* People
|
|
598
618
|
* @param props
|
|
599
619
|
* @constructor
|
|
600
620
|
*/
|
|
@@ -710,9 +730,12 @@ declare const App: (props: AppProps) => JSX.Element;
|
|
|
710
730
|
* Item
|
|
711
731
|
*/
|
|
712
732
|
interface Item$4 {
|
|
713
|
-
|
|
733
|
+
pathwayId: string;
|
|
714
734
|
name: string;
|
|
715
735
|
description: string;
|
|
736
|
+
imageURL?: string;
|
|
737
|
+
displayTags?: string[];
|
|
738
|
+
numberOfBadges?: number;
|
|
716
739
|
href: string;
|
|
717
740
|
}
|
|
718
741
|
|
|
@@ -787,6 +810,9 @@ type PathwayProps = {
|
|
|
787
810
|
loading: boolean;
|
|
788
811
|
title: string;
|
|
789
812
|
description: string;
|
|
813
|
+
imageURL?: string;
|
|
814
|
+
displayTags?: string[];
|
|
815
|
+
criteria?: Record<string, number>;
|
|
790
816
|
classes: PathwayClass[];
|
|
791
817
|
badges: Item$1[];
|
|
792
818
|
classId: string;
|
|
@@ -794,6 +820,7 @@ type PathwayProps = {
|
|
|
794
820
|
categories: {
|
|
795
821
|
categoryId: string;
|
|
796
822
|
name: string;
|
|
823
|
+
maxPoints?: number;
|
|
797
824
|
}[];
|
|
798
825
|
href: string;
|
|
799
826
|
trial?: boolean;
|