@local-civics/mgmt-ui 0.1.214 → 0.1.216
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 +28 -2
- package/dist/index.js +594 -944
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +596 -946
- 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
|
|
@@ -350,6 +360,7 @@ interface Item$d {
|
|
|
350
360
|
interface Item$c {
|
|
351
361
|
lessonId: string;
|
|
352
362
|
lessonName: string;
|
|
363
|
+
badgeName?: string;
|
|
353
364
|
questionName: string;
|
|
354
365
|
answer: string[];
|
|
355
366
|
href: string;
|
|
@@ -361,6 +372,7 @@ interface Item$c {
|
|
|
361
372
|
interface Item$b {
|
|
362
373
|
lessonId: string;
|
|
363
374
|
lessonName: string;
|
|
375
|
+
badgeName?: string;
|
|
364
376
|
reflection: string;
|
|
365
377
|
rating: number;
|
|
366
378
|
href: string;
|
|
@@ -508,6 +520,7 @@ interface Item$6 {
|
|
|
508
520
|
lessonId: string;
|
|
509
521
|
name: string;
|
|
510
522
|
description: string;
|
|
523
|
+
badge?: string;
|
|
511
524
|
pathway?: string;
|
|
512
525
|
href: string;
|
|
513
526
|
}
|
|
@@ -522,7 +535,13 @@ type LessonItem = Item$6;
|
|
|
522
535
|
type LessonsProps = {
|
|
523
536
|
loading: boolean;
|
|
524
537
|
lessons: LessonItem[];
|
|
538
|
+
pathways: {
|
|
539
|
+
pathwayId: string;
|
|
540
|
+
title: string;
|
|
541
|
+
}[];
|
|
542
|
+
selectedPathway: string;
|
|
525
543
|
onAutocompleteChange: (next: string) => void;
|
|
544
|
+
onPathwayChange: (pathwayId: string) => void;
|
|
526
545
|
};
|
|
527
546
|
/**
|
|
528
547
|
* Lessons
|
|
@@ -592,7 +611,7 @@ type PeopleProps = {
|
|
|
592
611
|
onAutocompleteChange: (next: string) => void;
|
|
593
612
|
};
|
|
594
613
|
/**
|
|
595
|
-
*
|
|
614
|
+
* People
|
|
596
615
|
* @param props
|
|
597
616
|
* @constructor
|
|
598
617
|
*/
|
|
@@ -708,9 +727,12 @@ declare const App: (props: AppProps) => JSX.Element;
|
|
|
708
727
|
* Item
|
|
709
728
|
*/
|
|
710
729
|
interface Item$4 {
|
|
711
|
-
|
|
730
|
+
pathwayId: string;
|
|
712
731
|
name: string;
|
|
713
732
|
description: string;
|
|
733
|
+
imageURL?: string;
|
|
734
|
+
displayTags?: string[];
|
|
735
|
+
numberOfBadges?: number;
|
|
714
736
|
href: string;
|
|
715
737
|
}
|
|
716
738
|
|
|
@@ -785,6 +807,9 @@ type PathwayProps = {
|
|
|
785
807
|
loading: boolean;
|
|
786
808
|
title: string;
|
|
787
809
|
description: string;
|
|
810
|
+
imageURL?: string;
|
|
811
|
+
displayTags?: string[];
|
|
812
|
+
criteria?: Record<string, number>;
|
|
788
813
|
classes: PathwayClass[];
|
|
789
814
|
badges: Item$1[];
|
|
790
815
|
classId: string;
|
|
@@ -792,6 +817,7 @@ type PathwayProps = {
|
|
|
792
817
|
categories: {
|
|
793
818
|
categoryId: string;
|
|
794
819
|
name: string;
|
|
820
|
+
maxPoints?: number;
|
|
795
821
|
}[];
|
|
796
822
|
href: string;
|
|
797
823
|
trial?: boolean;
|