@local-civics/mgmt-ui 0.1.191 → 0.1.193

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 = {
@@ -409,7 +409,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
409
409
  /**
410
410
  * Item
411
411
  */
412
- interface Item$9 {
412
+ interface Item$b {
413
413
  studentName: string;
414
414
  reflection: string;
415
415
  rating: number;
@@ -418,7 +418,7 @@ interface Item$9 {
418
418
  /**
419
419
  * Item
420
420
  */
421
- interface Item$8 {
421
+ interface Item$a {
422
422
  questionName: string;
423
423
  answer: string[];
424
424
  }
@@ -426,12 +426,12 @@ interface Item$8 {
426
426
  /**
427
427
  * Item
428
428
  */
429
- interface Item$7 {
429
+ interface Item$9 {
430
430
  userId: string;
431
431
  avatar: string;
432
432
  name: string;
433
433
  email: string;
434
- answers: Item$8[];
434
+ answers: Item$a[];
435
435
  isStarted?: boolean;
436
436
  isComplete?: boolean;
437
437
  href: string;
@@ -440,7 +440,7 @@ interface Item$7 {
440
440
  /**
441
441
  * Item
442
442
  */
443
- interface Item$6 {
443
+ interface Item$8 {
444
444
  question: string;
445
445
  answers: string[][];
446
446
  choices?: string[];
@@ -450,7 +450,7 @@ interface Item$6 {
450
450
  /**
451
451
  * LessonUserItem
452
452
  */
453
- type LessonUserItem = Item$7;
453
+ type LessonUserItem = Item$9;
454
454
  /**
455
455
  * LessonClass
456
456
  */
@@ -470,8 +470,8 @@ type LessonProps = {
470
470
  classId: string;
471
471
  classes: LessonClass[];
472
472
  students: LessonUserItem[];
473
- reflections: Item$9[];
474
- questions: Item$6[];
473
+ reflections: Item$b[];
474
+ questions: Item$8[];
475
475
  trial?: boolean;
476
476
  lessonsCompleted?: number;
477
477
  contributors?: {
@@ -492,7 +492,7 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
492
492
  /**
493
493
  * Item
494
494
  */
495
- interface Item$5 {
495
+ interface Item$7 {
496
496
  lessonId: string;
497
497
  name: string;
498
498
  description: string;
@@ -502,7 +502,7 @@ interface Item$5 {
502
502
  /**
503
503
  * LessonItem
504
504
  */
505
- type LessonItem = Item$5;
505
+ type LessonItem = Item$7;
506
506
  /**
507
507
  * LessonsProps
508
508
  */
@@ -543,7 +543,7 @@ declare const Organization: (props: OrganizationProps) => JSX.Element;
543
543
  /**
544
544
  * Item
545
545
  */
546
- type Item$4 = {
546
+ type Item$6 = {
547
547
  userId: string;
548
548
  avatar: string;
549
549
  email: string;
@@ -561,7 +561,7 @@ type Item$4 = {
561
561
  /**
562
562
  * UserItem
563
563
  */
564
- type UserItem = Item$4;
564
+ type UserItem = Item$6;
565
565
  /**
566
566
  * PeopleProps
567
567
  */
@@ -694,7 +694,7 @@ declare const App: (props: AppProps) => JSX.Element;
694
694
  /**
695
695
  * Item
696
696
  */
697
- interface Item$3 {
697
+ interface Item$5 {
698
698
  badgeId: string;
699
699
  name: string;
700
700
  description: string;
@@ -704,7 +704,7 @@ interface Item$3 {
704
704
  /**
705
705
  * PathwaysItem
706
706
  */
707
- type PathwaysItem = Item$3;
707
+ type PathwaysItem = Item$5;
708
708
  /**
709
709
  * PathwaysProps
710
710
  */
@@ -722,7 +722,7 @@ declare const Pathways: (props: PathwaysProps) => JSX.Element;
722
722
  /**
723
723
  * Item
724
724
  */
725
- interface Item$2 {
725
+ interface Item$4 {
726
726
  badgeName: string;
727
727
  completion: number;
728
728
  isStarted?: boolean;
@@ -732,20 +732,20 @@ interface Item$2 {
732
732
  /**
733
733
  * Item
734
734
  */
735
- interface Item$1 {
735
+ interface Item$3 {
736
736
  userId: string;
737
737
  avatar: string;
738
738
  name: string;
739
739
  email: string;
740
740
  isComplete?: boolean;
741
- badges: Item$2[];
741
+ badges: Item$4[];
742
742
  categoryPoints?: Record<string, number>;
743
743
  }
744
744
 
745
745
  /**
746
746
  * Item
747
747
  */
748
- interface Item {
748
+ interface Item$2 {
749
749
  badgeId: string;
750
750
  badgeName: string;
751
751
  percentageCompletion: number;
@@ -755,7 +755,7 @@ interface Item {
755
755
  /**
756
756
  * PathwayUserItem
757
757
  */
758
- type PathwayUserItem = Item$1;
758
+ type PathwayUserItem = Item$3;
759
759
  /**
760
760
  * PathwayClass
761
761
  */
@@ -772,7 +772,7 @@ type PathwayProps = {
772
772
  title: string;
773
773
  description: string;
774
774
  classes: PathwayClass[];
775
- badges: Item[];
775
+ badges: Item$2[];
776
776
  classId: string;
777
777
  students: PathwayUserItem[];
778
778
  categories: {
@@ -794,4 +794,69 @@ type PathwayProps = {
794
794
  */
795
795
  declare const Pathway: (props: PathwayProps) => JSX.Element;
796
796
 
797
- 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 };