@local-civics/mgmt-ui 0.1.124 → 0.1.125
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 +116 -46
- package/dist/index.js +305 -108
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +359 -163
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
|
|
|
69
69
|
/**
|
|
70
70
|
* Item
|
|
71
71
|
*/
|
|
72
|
-
interface Item$
|
|
72
|
+
interface Item$n {
|
|
73
73
|
lessonName: string;
|
|
74
74
|
completion: number;
|
|
75
75
|
isStarted?: boolean;
|
|
@@ -79,19 +79,19 @@ interface Item$k {
|
|
|
79
79
|
/**
|
|
80
80
|
* Item
|
|
81
81
|
*/
|
|
82
|
-
interface Item$
|
|
82
|
+
interface Item$m {
|
|
83
83
|
userId: string;
|
|
84
84
|
avatar: string;
|
|
85
85
|
name: string;
|
|
86
86
|
email: string;
|
|
87
87
|
isComplete?: boolean;
|
|
88
|
-
lessons: Item$
|
|
88
|
+
lessons: Item$n[];
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Item
|
|
93
93
|
*/
|
|
94
|
-
interface Item$
|
|
94
|
+
interface Item$l {
|
|
95
95
|
lessonId: string;
|
|
96
96
|
lessonName: string;
|
|
97
97
|
percentageCompletion: number;
|
|
@@ -101,7 +101,7 @@ interface Item$i {
|
|
|
101
101
|
/**
|
|
102
102
|
* BadgeUserItem
|
|
103
103
|
*/
|
|
104
|
-
type BadgeUserItem = Item$
|
|
104
|
+
type BadgeUserItem = Item$m;
|
|
105
105
|
/**
|
|
106
106
|
* BadgeClass
|
|
107
107
|
*/
|
|
@@ -118,7 +118,7 @@ type BadgeProps = {
|
|
|
118
118
|
displayName: string;
|
|
119
119
|
description: string;
|
|
120
120
|
classes: BadgeClass[];
|
|
121
|
-
lessons: Item$
|
|
121
|
+
lessons: Item$l[];
|
|
122
122
|
classId: string;
|
|
123
123
|
students: BadgeUserItem[];
|
|
124
124
|
href: string;
|
|
@@ -139,7 +139,7 @@ declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
|
139
139
|
/**
|
|
140
140
|
* Item
|
|
141
141
|
*/
|
|
142
|
-
interface Item$
|
|
142
|
+
interface Item$k {
|
|
143
143
|
badgeId: string;
|
|
144
144
|
name: string;
|
|
145
145
|
description: string;
|
|
@@ -149,7 +149,7 @@ interface Item$h {
|
|
|
149
149
|
/**
|
|
150
150
|
* BadgeItem
|
|
151
151
|
*/
|
|
152
|
-
type BadgeItem = Item$
|
|
152
|
+
type BadgeItem = Item$k;
|
|
153
153
|
/**
|
|
154
154
|
* BadgesProps
|
|
155
155
|
*/
|
|
@@ -168,7 +168,7 @@ declare const Badges: (props: BadgesProps) => JSX.Element;
|
|
|
168
168
|
/**
|
|
169
169
|
* Item
|
|
170
170
|
*/
|
|
171
|
-
interface Item$
|
|
171
|
+
interface Item$j {
|
|
172
172
|
studentId: string;
|
|
173
173
|
studentName: string;
|
|
174
174
|
className: string;
|
|
@@ -177,7 +177,7 @@ interface Item$g {
|
|
|
177
177
|
/**
|
|
178
178
|
* Item
|
|
179
179
|
*/
|
|
180
|
-
interface Item$
|
|
180
|
+
interface Item$i {
|
|
181
181
|
lessonName: string;
|
|
182
182
|
studentName: string;
|
|
183
183
|
reflection: string;
|
|
@@ -187,7 +187,7 @@ interface Item$f {
|
|
|
187
187
|
/**
|
|
188
188
|
* Item
|
|
189
189
|
*/
|
|
190
|
-
interface Item$
|
|
190
|
+
interface Item$h {
|
|
191
191
|
studentName: string;
|
|
192
192
|
impactStatement: string;
|
|
193
193
|
}
|
|
@@ -195,7 +195,7 @@ interface Item$e {
|
|
|
195
195
|
/**
|
|
196
196
|
* Item
|
|
197
197
|
*/
|
|
198
|
-
interface Item$
|
|
198
|
+
interface Item$g {
|
|
199
199
|
badgeId: string;
|
|
200
200
|
name: string;
|
|
201
201
|
description: string;
|
|
@@ -205,7 +205,7 @@ interface Item$d {
|
|
|
205
205
|
/**
|
|
206
206
|
* Item
|
|
207
207
|
*/
|
|
208
|
-
interface Item$
|
|
208
|
+
interface Item$f {
|
|
209
209
|
lessonId: string;
|
|
210
210
|
name: string;
|
|
211
211
|
description: string;
|
|
@@ -224,20 +224,20 @@ type DashboardClass = {
|
|
|
224
224
|
*/
|
|
225
225
|
type DashboardProps = {
|
|
226
226
|
loading: boolean;
|
|
227
|
-
students: Item$
|
|
228
|
-
impacts: Item$
|
|
229
|
-
reflections: Item$
|
|
227
|
+
students: Item$j[];
|
|
228
|
+
impacts: Item$h[];
|
|
229
|
+
reflections: Item$i[];
|
|
230
230
|
classes: DashboardClass[];
|
|
231
|
-
badges: Item$
|
|
232
|
-
lessons: Item$
|
|
231
|
+
badges: Item$g[];
|
|
232
|
+
lessons: Item$f[];
|
|
233
233
|
classId: string;
|
|
234
234
|
percentageOfAccountsCreated: number;
|
|
235
235
|
numberOfBadgesEarned: number;
|
|
236
236
|
numberOfLessonsCompleted: number;
|
|
237
237
|
onClassChange: (classId: string) => void;
|
|
238
|
-
onViewStudentProfile: (student: Item$
|
|
239
|
-
onBadgeClick: (badge: Item$
|
|
240
|
-
onLessonClick: (lesson: Item$
|
|
238
|
+
onViewStudentProfile: (student: Item$j) => void;
|
|
239
|
+
onBadgeClick: (badge: Item$g) => void;
|
|
240
|
+
onLessonClick: (lesson: Item$f) => void;
|
|
241
241
|
};
|
|
242
242
|
/**
|
|
243
243
|
* Dashboard
|
|
@@ -249,7 +249,7 @@ declare const Dashboard: (props: DashboardProps) => JSX.Element;
|
|
|
249
249
|
/**
|
|
250
250
|
* Item
|
|
251
251
|
*/
|
|
252
|
-
type Item$
|
|
252
|
+
type Item$e = {
|
|
253
253
|
classId: string;
|
|
254
254
|
userId: string;
|
|
255
255
|
avatar: string;
|
|
@@ -268,7 +268,7 @@ type Item$b = {
|
|
|
268
268
|
/**
|
|
269
269
|
* MemberItem
|
|
270
270
|
*/
|
|
271
|
-
type MemberItem = Item$
|
|
271
|
+
type MemberItem = Item$e;
|
|
272
272
|
/**
|
|
273
273
|
* ClassProps
|
|
274
274
|
*/
|
|
@@ -296,7 +296,7 @@ declare const Class: (props: ClassProps) => JSX.Element;
|
|
|
296
296
|
/**
|
|
297
297
|
* Item
|
|
298
298
|
*/
|
|
299
|
-
type Item$
|
|
299
|
+
type Item$d = {
|
|
300
300
|
href: string;
|
|
301
301
|
classId: string;
|
|
302
302
|
name: string;
|
|
@@ -307,7 +307,7 @@ type Item$a = {
|
|
|
307
307
|
/**
|
|
308
308
|
* ClassItem
|
|
309
309
|
*/
|
|
310
|
-
type ClassItem = Item$
|
|
310
|
+
type ClassItem = Item$d;
|
|
311
311
|
/**
|
|
312
312
|
* ClassesProps
|
|
313
313
|
*/
|
|
@@ -328,7 +328,7 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
|
|
|
328
328
|
/**
|
|
329
329
|
* Item
|
|
330
330
|
*/
|
|
331
|
-
interface Item$
|
|
331
|
+
interface Item$c {
|
|
332
332
|
badgeId: string;
|
|
333
333
|
badgeName: string;
|
|
334
334
|
isComplete?: boolean;
|
|
@@ -337,7 +337,7 @@ interface Item$9 {
|
|
|
337
337
|
/**
|
|
338
338
|
* Item
|
|
339
339
|
*/
|
|
340
|
-
interface Item$
|
|
340
|
+
interface Item$b {
|
|
341
341
|
lessonId: string;
|
|
342
342
|
lessonName: string;
|
|
343
343
|
questionName: string;
|
|
@@ -348,7 +348,7 @@ interface Item$8 {
|
|
|
348
348
|
/**
|
|
349
349
|
* Item
|
|
350
350
|
*/
|
|
351
|
-
interface Item$
|
|
351
|
+
interface Item$a {
|
|
352
352
|
lessonId: string;
|
|
353
353
|
lessonName: string;
|
|
354
354
|
reflection: string;
|
|
@@ -365,9 +365,9 @@ type StudentProps = {
|
|
|
365
365
|
impactStatement: string;
|
|
366
366
|
numberOfProblemsSolved: number;
|
|
367
367
|
percentageOfLessonsCompleted: number;
|
|
368
|
-
badges: Item$
|
|
369
|
-
answers: Item$
|
|
370
|
-
reflections: Item$
|
|
368
|
+
badges: Item$c[];
|
|
369
|
+
answers: Item$b[];
|
|
370
|
+
reflections: Item$a[];
|
|
371
371
|
onBackClick: () => void;
|
|
372
372
|
};
|
|
373
373
|
declare const Student: (props: StudentProps) => JSX.Element;
|
|
@@ -401,7 +401,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
|
|
|
401
401
|
/**
|
|
402
402
|
* Item
|
|
403
403
|
*/
|
|
404
|
-
interface Item$
|
|
404
|
+
interface Item$9 {
|
|
405
405
|
studentName: string;
|
|
406
406
|
reflection: string;
|
|
407
407
|
rating: number;
|
|
@@ -410,7 +410,7 @@ interface Item$6 {
|
|
|
410
410
|
/**
|
|
411
411
|
* Item
|
|
412
412
|
*/
|
|
413
|
-
interface Item$
|
|
413
|
+
interface Item$8 {
|
|
414
414
|
questionName: string;
|
|
415
415
|
answer: string[];
|
|
416
416
|
}
|
|
@@ -418,12 +418,12 @@ interface Item$5 {
|
|
|
418
418
|
/**
|
|
419
419
|
* Item
|
|
420
420
|
*/
|
|
421
|
-
interface Item$
|
|
421
|
+
interface Item$7 {
|
|
422
422
|
userId: string;
|
|
423
423
|
avatar: string;
|
|
424
424
|
name: string;
|
|
425
425
|
email: string;
|
|
426
|
-
answers: Item$
|
|
426
|
+
answers: Item$8[];
|
|
427
427
|
isStarted?: boolean;
|
|
428
428
|
isComplete?: boolean;
|
|
429
429
|
href: string;
|
|
@@ -432,7 +432,7 @@ interface Item$4 {
|
|
|
432
432
|
/**
|
|
433
433
|
* Item
|
|
434
434
|
*/
|
|
435
|
-
interface Item$
|
|
435
|
+
interface Item$6 {
|
|
436
436
|
question: string;
|
|
437
437
|
answers: string[][];
|
|
438
438
|
choices?: string[];
|
|
@@ -442,7 +442,7 @@ interface Item$3 {
|
|
|
442
442
|
/**
|
|
443
443
|
* LessonUserItem
|
|
444
444
|
*/
|
|
445
|
-
type LessonUserItem = Item$
|
|
445
|
+
type LessonUserItem = Item$7;
|
|
446
446
|
/**
|
|
447
447
|
* LessonClass
|
|
448
448
|
*/
|
|
@@ -462,8 +462,8 @@ type LessonProps = {
|
|
|
462
462
|
classId: string;
|
|
463
463
|
classes: LessonClass[];
|
|
464
464
|
students: LessonUserItem[];
|
|
465
|
-
reflections: Item$
|
|
466
|
-
questions: Item$
|
|
465
|
+
reflections: Item$9[];
|
|
466
|
+
questions: Item$6[];
|
|
467
467
|
trial?: boolean;
|
|
468
468
|
lessonsCompleted?: number;
|
|
469
469
|
contributors?: {
|
|
@@ -484,7 +484,7 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
|
|
|
484
484
|
/**
|
|
485
485
|
* Item
|
|
486
486
|
*/
|
|
487
|
-
interface Item$
|
|
487
|
+
interface Item$5 {
|
|
488
488
|
lessonId: string;
|
|
489
489
|
name: string;
|
|
490
490
|
description: string;
|
|
@@ -494,7 +494,7 @@ interface Item$2 {
|
|
|
494
494
|
/**
|
|
495
495
|
* LessonItem
|
|
496
496
|
*/
|
|
497
|
-
type LessonItem = Item$
|
|
497
|
+
type LessonItem = Item$5;
|
|
498
498
|
/**
|
|
499
499
|
* LessonsProps
|
|
500
500
|
*/
|
|
@@ -535,7 +535,7 @@ declare const Organization: (props: OrganizationProps) => JSX.Element;
|
|
|
535
535
|
/**
|
|
536
536
|
* Item
|
|
537
537
|
*/
|
|
538
|
-
type Item$
|
|
538
|
+
type Item$4 = {
|
|
539
539
|
userId: string;
|
|
540
540
|
avatar: string;
|
|
541
541
|
email: string;
|
|
@@ -553,7 +553,7 @@ type Item$1 = {
|
|
|
553
553
|
/**
|
|
554
554
|
* UserItem
|
|
555
555
|
*/
|
|
556
|
-
type UserItem = Item$
|
|
556
|
+
type UserItem = Item$4;
|
|
557
557
|
/**
|
|
558
558
|
* PeopleProps
|
|
559
559
|
*/
|
|
@@ -686,7 +686,7 @@ declare const App: (props: AppProps) => JSX.Element;
|
|
|
686
686
|
/**
|
|
687
687
|
* Item
|
|
688
688
|
*/
|
|
689
|
-
interface Item {
|
|
689
|
+
interface Item$3 {
|
|
690
690
|
badgeId: string;
|
|
691
691
|
name: string;
|
|
692
692
|
description: string;
|
|
@@ -696,7 +696,7 @@ interface Item {
|
|
|
696
696
|
/**
|
|
697
697
|
* PathwaysItem
|
|
698
698
|
*/
|
|
699
|
-
type PathwaysItem = Item;
|
|
699
|
+
type PathwaysItem = Item$3;
|
|
700
700
|
/**
|
|
701
701
|
* PathwaysProps
|
|
702
702
|
*/
|
|
@@ -711,4 +711,74 @@ type PathwaysProps = {
|
|
|
711
711
|
*/
|
|
712
712
|
declare const Pathways: (props: PathwaysProps) => JSX.Element;
|
|
713
713
|
|
|
714
|
-
|
|
714
|
+
/**
|
|
715
|
+
* Item
|
|
716
|
+
*/
|
|
717
|
+
interface Item$2 {
|
|
718
|
+
lessonName: string;
|
|
719
|
+
completion: number;
|
|
720
|
+
isStarted?: boolean;
|
|
721
|
+
href: string;
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Item
|
|
726
|
+
*/
|
|
727
|
+
interface Item$1 {
|
|
728
|
+
userId: string;
|
|
729
|
+
avatar: string;
|
|
730
|
+
name: string;
|
|
731
|
+
email: string;
|
|
732
|
+
isComplete?: boolean;
|
|
733
|
+
lessons: Item$2[];
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Item
|
|
738
|
+
*/
|
|
739
|
+
interface Item {
|
|
740
|
+
lessonId: string;
|
|
741
|
+
lessonName: string;
|
|
742
|
+
percentageCompletion: number;
|
|
743
|
+
href: string;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* PathwayUserItem
|
|
748
|
+
*/
|
|
749
|
+
type PathwayUserItem = Item$1;
|
|
750
|
+
/**
|
|
751
|
+
* PathwayClass
|
|
752
|
+
*/
|
|
753
|
+
type PathwayClass = {
|
|
754
|
+
classId: string;
|
|
755
|
+
name: string;
|
|
756
|
+
active: boolean;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* PathwayProps
|
|
760
|
+
*/
|
|
761
|
+
type PathwayProps = {
|
|
762
|
+
loading: boolean;
|
|
763
|
+
displayName: string;
|
|
764
|
+
description: string;
|
|
765
|
+
classes: PathwayClass[];
|
|
766
|
+
lessons: Item[];
|
|
767
|
+
classId: string;
|
|
768
|
+
students: PathwayUserItem[];
|
|
769
|
+
href: string;
|
|
770
|
+
trial?: boolean;
|
|
771
|
+
lessonsCompleted?: number;
|
|
772
|
+
onBackClick: () => void;
|
|
773
|
+
onClassChange: (classId: string) => void;
|
|
774
|
+
onCopyLinkClick: () => void;
|
|
775
|
+
onExportDataClick: () => void;
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* Pathway
|
|
779
|
+
* @param props
|
|
780
|
+
* @constructor
|
|
781
|
+
*/
|
|
782
|
+
declare const Pathway: (props: PathwayProps) => JSX.Element;
|
|
783
|
+
|
|
784
|
+
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, GettingStarted, GettingStartedProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, NewTrialRegistration, Organization, OrganizationProps, Pathway, PathwayClass, PathwayProps, PathwayUserItem, Pathways, PathwaysItem, PathwaysProps, People, PeopleProps, StartAnonymousLesson, StartAnonymousLessonProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, TrialHome, TrialHomeProps, TrialRegistration, TrialRegistrationProps, UserItem };
|