@local-civics/mgmt-ui 0.1.190 → 0.1.192

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 CHANGED
@@ -69,7 +69,7 @@ declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
69
69
  /**
70
70
  * Item
71
71
  */
72
- interface Item$n {
72
+ interface Item$p {
73
73
  lessonName: string;
74
74
  completion: number;
75
75
  isStarted?: boolean;
@@ -79,19 +79,19 @@ interface Item$n {
79
79
  /**
80
80
  * Item
81
81
  */
82
- interface Item$m {
82
+ interface Item$o {
83
83
  userId: string;
84
84
  avatar: string;
85
85
  name: string;
86
86
  email: string;
87
87
  isComplete?: boolean;
88
- lessons: Item$n[];
88
+ lessons: Item$p[];
89
89
  }
90
90
 
91
91
  /**
92
92
  * Item
93
93
  */
94
- interface Item$l {
94
+ interface Item$n {
95
95
  lessonId: string;
96
96
  lessonName: string;
97
97
  percentageCompletion: number;
@@ -101,7 +101,7 @@ interface Item$l {
101
101
  /**
102
102
  * BadgeUserItem
103
103
  */
104
- type BadgeUserItem = Item$m;
104
+ type BadgeUserItem = Item$o;
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$l[];
121
+ lessons: Item$n[];
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$k {
142
+ interface Item$m {
143
143
  badgeId: string;
144
144
  name: string;
145
145
  description: string;
@@ -149,7 +149,7 @@ interface Item$k {
149
149
  /**
150
150
  * BadgeItem
151
151
  */
152
- type BadgeItem = Item$k;
152
+ type BadgeItem = Item$m;
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$j {
171
+ interface Item$l {
172
172
  studentId: string;
173
173
  studentName: string;
174
174
  className: string;
@@ -177,7 +177,7 @@ interface Item$j {
177
177
  /**
178
178
  * Item
179
179
  */
180
- interface Item$i {
180
+ interface Item$k {
181
181
  lessonName: string;
182
182
  studentName: string;
183
183
  reflection: string;
@@ -187,7 +187,7 @@ interface Item$i {
187
187
  /**
188
188
  * Item
189
189
  */
190
- interface Item$h {
190
+ interface Item$j {
191
191
  studentName: string;
192
192
  impactStatement: string;
193
193
  }
@@ -195,7 +195,7 @@ interface Item$h {
195
195
  /**
196
196
  * Item
197
197
  */
198
- interface Item$g {
198
+ interface Item$i {
199
199
  badgeId: string;
200
200
  name: string;
201
201
  description: string;
@@ -205,7 +205,7 @@ interface Item$g {
205
205
  /**
206
206
  * Item
207
207
  */
208
- interface Item$f {
208
+ interface Item$h {
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$j[];
228
- impacts: Item$h[];
229
- reflections: Item$i[];
227
+ students: Item$l[];
228
+ impacts: Item$j[];
229
+ reflections: Item$k[];
230
230
  classes: DashboardClass[];
231
- badges: Item$g[];
232
- lessons: Item$f[];
231
+ badges: Item$i[];
232
+ lessons: Item$h[];
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$j) => void;
239
- onBadgeClick: (badge: Item$g) => void;
240
- onLessonClick: (lesson: Item$f) => void;
238
+ onViewStudentProfile: (student: Item$l) => void;
239
+ onBadgeClick: (badge: Item$i) => void;
240
+ onLessonClick: (lesson: Item$h) => 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$e = {
252
+ type Item$g = {
253
253
  classId: string;
254
254
  userId: string;
255
255
  avatar: string;
@@ -268,7 +268,7 @@ type Item$e = {
268
268
  /**
269
269
  * MemberItem
270
270
  */
271
- type MemberItem = Item$e;
271
+ type MemberItem = Item$g;
272
272
  /**
273
273
  * ClassProps
274
274
  */
@@ -294,7 +294,7 @@ type ClassProps = {
294
294
  */
295
295
  declare const Class: (props: ClassProps) => JSX.Element;
296
296
 
297
- type Item$d = {
297
+ type Item$f = {
298
298
  href: string;
299
299
  classId: string;
300
300
  name: string;
@@ -305,7 +305,7 @@ type Item$d = {
305
305
  /**
306
306
  * ClassItem
307
307
  */
308
- type ClassItem = Item$d;
308
+ type ClassItem = Item$f;
309
309
  /**
310
310
  * ClassesProps
311
311
  */
@@ -326,7 +326,7 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
326
326
  /**
327
327
  * Item
328
328
  */
329
- interface Item$c {
329
+ interface Item$e {
330
330
  badgeId: string;
331
331
  badgeName: string;
332
332
  isComplete?: boolean;
@@ -335,7 +335,7 @@ interface Item$c {
335
335
  /**
336
336
  * Item
337
337
  */
338
- interface Item$b {
338
+ interface Item$d {
339
339
  lessonId: string;
340
340
  lessonName: string;
341
341
  questionName: string;
@@ -346,7 +346,7 @@ interface Item$b {
346
346
  /**
347
347
  * Item
348
348
  */
349
- interface Item$a {
349
+ interface Item$c {
350
350
  lessonId: string;
351
351
  lessonName: string;
352
352
  reflection: string;
@@ -364,10 +364,10 @@ type StudentProps = {
364
364
  numberOfProblemsSolved: number;
365
365
  percentageOfLessonsCompleted: number;
366
366
  numberOfLessonsCompleted: number;
367
- badges: Item$c[];
367
+ badges: Item$e[];
368
368
  lessons: LessonItem$1[];
369
- answers: Item$b[];
370
- reflections: Item$a[];
369
+ answers: Item$d[];
370
+ reflections: Item$c[];
371
371
  onBackClick: () => void;
372
372
  };
373
373
  type LessonItem$1 = {
@@ -397,6 +397,7 @@ type HomeProps = {
397
397
  onPathwaysClick: () => void;
398
398
  onBadgesClick: () => void;
399
399
  onLessonsClick: () => void;
400
+ onFileLockerClick: () => void;
400
401
  };
401
402
  /**
402
403
  * Home
@@ -408,7 +409,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
408
409
  /**
409
410
  * Item
410
411
  */
411
- interface Item$9 {
412
+ interface Item$b {
412
413
  studentName: string;
413
414
  reflection: string;
414
415
  rating: number;
@@ -417,7 +418,7 @@ interface Item$9 {
417
418
  /**
418
419
  * Item
419
420
  */
420
- interface Item$8 {
421
+ interface Item$a {
421
422
  questionName: string;
422
423
  answer: string[];
423
424
  }
@@ -425,12 +426,12 @@ interface Item$8 {
425
426
  /**
426
427
  * Item
427
428
  */
428
- interface Item$7 {
429
+ interface Item$9 {
429
430
  userId: string;
430
431
  avatar: string;
431
432
  name: string;
432
433
  email: string;
433
- answers: Item$8[];
434
+ answers: Item$a[];
434
435
  isStarted?: boolean;
435
436
  isComplete?: boolean;
436
437
  href: string;
@@ -439,7 +440,7 @@ interface Item$7 {
439
440
  /**
440
441
  * Item
441
442
  */
442
- interface Item$6 {
443
+ interface Item$8 {
443
444
  question: string;
444
445
  answers: string[][];
445
446
  choices?: string[];
@@ -449,7 +450,7 @@ interface Item$6 {
449
450
  /**
450
451
  * LessonUserItem
451
452
  */
452
- type LessonUserItem = Item$7;
453
+ type LessonUserItem = Item$9;
453
454
  /**
454
455
  * LessonClass
455
456
  */
@@ -469,8 +470,8 @@ type LessonProps = {
469
470
  classId: string;
470
471
  classes: LessonClass[];
471
472
  students: LessonUserItem[];
472
- reflections: Item$9[];
473
- questions: Item$6[];
473
+ reflections: Item$b[];
474
+ questions: Item$8[];
474
475
  trial?: boolean;
475
476
  lessonsCompleted?: number;
476
477
  contributors?: {
@@ -491,7 +492,7 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
491
492
  /**
492
493
  * Item
493
494
  */
494
- interface Item$5 {
495
+ interface Item$7 {
495
496
  lessonId: string;
496
497
  name: string;
497
498
  description: string;
@@ -501,7 +502,7 @@ interface Item$5 {
501
502
  /**
502
503
  * LessonItem
503
504
  */
504
- type LessonItem = Item$5;
505
+ type LessonItem = Item$7;
505
506
  /**
506
507
  * LessonsProps
507
508
  */
@@ -542,7 +543,7 @@ declare const Organization: (props: OrganizationProps) => JSX.Element;
542
543
  /**
543
544
  * Item
544
545
  */
545
- type Item$4 = {
546
+ type Item$6 = {
546
547
  userId: string;
547
548
  avatar: string;
548
549
  email: string;
@@ -560,7 +561,7 @@ type Item$4 = {
560
561
  /**
561
562
  * UserItem
562
563
  */
563
- type UserItem = Item$4;
564
+ type UserItem = Item$6;
564
565
  /**
565
566
  * PeopleProps
566
567
  */
@@ -693,7 +694,7 @@ declare const App: (props: AppProps) => JSX.Element;
693
694
  /**
694
695
  * Item
695
696
  */
696
- interface Item$3 {
697
+ interface Item$5 {
697
698
  badgeId: string;
698
699
  name: string;
699
700
  description: string;
@@ -703,7 +704,7 @@ interface Item$3 {
703
704
  /**
704
705
  * PathwaysItem
705
706
  */
706
- type PathwaysItem = Item$3;
707
+ type PathwaysItem = Item$5;
707
708
  /**
708
709
  * PathwaysProps
709
710
  */
@@ -721,7 +722,7 @@ declare const Pathways: (props: PathwaysProps) => JSX.Element;
721
722
  /**
722
723
  * Item
723
724
  */
724
- interface Item$2 {
725
+ interface Item$4 {
725
726
  badgeName: string;
726
727
  completion: number;
727
728
  isStarted?: boolean;
@@ -731,20 +732,20 @@ interface Item$2 {
731
732
  /**
732
733
  * Item
733
734
  */
734
- interface Item$1 {
735
+ interface Item$3 {
735
736
  userId: string;
736
737
  avatar: string;
737
738
  name: string;
738
739
  email: string;
739
740
  isComplete?: boolean;
740
- badges: Item$2[];
741
+ badges: Item$4[];
741
742
  categoryPoints?: Record<string, number>;
742
743
  }
743
744
 
744
745
  /**
745
746
  * Item
746
747
  */
747
- interface Item {
748
+ interface Item$2 {
748
749
  badgeId: string;
749
750
  badgeName: string;
750
751
  percentageCompletion: number;
@@ -754,7 +755,7 @@ interface Item {
754
755
  /**
755
756
  * PathwayUserItem
756
757
  */
757
- type PathwayUserItem = Item$1;
758
+ type PathwayUserItem = Item$3;
758
759
  /**
759
760
  * PathwayClass
760
761
  */
@@ -771,7 +772,7 @@ type PathwayProps = {
771
772
  title: string;
772
773
  description: string;
773
774
  classes: PathwayClass[];
774
- badges: Item[];
775
+ badges: Item$2[];
775
776
  classId: string;
776
777
  students: PathwayUserItem[];
777
778
  categories: {
@@ -793,4 +794,69 @@ type PathwayProps = {
793
794
  */
794
795
  declare const Pathway: (props: PathwayProps) => JSX.Element;
795
796
 
796
- 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 };
797
+ /**
798
+ * Item
799
+ */
800
+ interface Item$1 {
801
+ userId: string;
802
+ avatar: string;
803
+ name: string;
804
+ email: string;
805
+ submissions: SubmissionItem[];
806
+ }
807
+ interface SubmissionItem {
808
+ link: string;
809
+ badgeName: string;
810
+ lessonName: string;
811
+ question: string;
812
+ }
813
+
814
+ /**
815
+ * Item
816
+ */
817
+ interface Item {
818
+ lessonId: string;
819
+ lessonName: string;
820
+ percentageCompletion: number;
821
+ href: string;
822
+ }
823
+
824
+ /**
825
+ * FileLockerUserItem
826
+ */
827
+ type FileLockerUserItem = Item$1;
828
+ /**
829
+ * FileLockerClass
830
+ */
831
+ type FileLockerClass = {
832
+ classId: string;
833
+ name: string;
834
+ active: boolean;
835
+ };
836
+ /**
837
+ * FileLockerProps
838
+ */
839
+ type FileLockerProps = {
840
+ loading: boolean;
841
+ displayName: string;
842
+ description: string;
843
+ classes: FileLockerClass[];
844
+ lessons: Item[];
845
+ classId: string;
846
+ students: FileLockerUserItem[];
847
+ href: string;
848
+ trial?: boolean;
849
+ lessonsCompleted?: number;
850
+ onBackClick: () => void;
851
+ onClassChange: (classId: string) => void;
852
+ onCopyLinkClick: () => void;
853
+ onExportDataClick: () => void;
854
+ };
855
+ /**
856
+ * FileLocker
857
+ * @param props
858
+ * @constructor
859
+ */
860
+ declare const FileLocker: (props: FileLockerProps) => JSX.Element;
861
+
862
+ export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, FileLocker, FileLockerClass, FileLockerProps, FileLockerUserItem, 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 };