@local-civics/mgmt-ui 0.1.66 → 0.1.68
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 +109 -43
- package/dist/index.js +547 -169
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +561 -185
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
|
|
|
66
66
|
/**
|
|
67
67
|
* Item
|
|
68
68
|
*/
|
|
69
|
-
interface Item$
|
|
69
|
+
interface Item$j {
|
|
70
70
|
lessonName: string;
|
|
71
71
|
completion: number;
|
|
72
72
|
isStarted?: boolean;
|
|
@@ -76,19 +76,19 @@ interface Item$i {
|
|
|
76
76
|
/**
|
|
77
77
|
* Item
|
|
78
78
|
*/
|
|
79
|
-
interface Item$
|
|
79
|
+
interface Item$i {
|
|
80
80
|
userId: string;
|
|
81
81
|
avatar: string;
|
|
82
82
|
name: string;
|
|
83
83
|
email: string;
|
|
84
84
|
isComplete?: boolean;
|
|
85
|
-
lessons: Item$
|
|
85
|
+
lessons: Item$j[];
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Item
|
|
90
90
|
*/
|
|
91
|
-
interface Item$
|
|
91
|
+
interface Item$h {
|
|
92
92
|
lessonId: string;
|
|
93
93
|
lessonName: string;
|
|
94
94
|
percentageCompletion: number;
|
|
@@ -98,7 +98,7 @@ interface Item$g {
|
|
|
98
98
|
/**
|
|
99
99
|
* BadgeUserItem
|
|
100
100
|
*/
|
|
101
|
-
type BadgeUserItem = Item$
|
|
101
|
+
type BadgeUserItem = Item$i;
|
|
102
102
|
/**
|
|
103
103
|
* BadgeClass
|
|
104
104
|
*/
|
|
@@ -115,7 +115,7 @@ type BadgeProps = {
|
|
|
115
115
|
displayName: string;
|
|
116
116
|
description: string;
|
|
117
117
|
classes: BadgeClass[];
|
|
118
|
-
lessons: Item$
|
|
118
|
+
lessons: Item$h[];
|
|
119
119
|
classId: string;
|
|
120
120
|
students: BadgeUserItem[];
|
|
121
121
|
href: string;
|
|
@@ -134,7 +134,7 @@ declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
|
134
134
|
/**
|
|
135
135
|
* Item
|
|
136
136
|
*/
|
|
137
|
-
interface Item$
|
|
137
|
+
interface Item$g {
|
|
138
138
|
badgeId: string;
|
|
139
139
|
name: string;
|
|
140
140
|
description: string;
|
|
@@ -144,7 +144,7 @@ interface Item$f {
|
|
|
144
144
|
/**
|
|
145
145
|
* BadgeItem
|
|
146
146
|
*/
|
|
147
|
-
type BadgeItem = Item$
|
|
147
|
+
type BadgeItem = Item$g;
|
|
148
148
|
/**
|
|
149
149
|
* BadgesProps
|
|
150
150
|
*/
|
|
@@ -163,7 +163,7 @@ declare const Badges: (props: BadgesProps) => JSX.Element;
|
|
|
163
163
|
/**
|
|
164
164
|
* Item
|
|
165
165
|
*/
|
|
166
|
-
interface Item$
|
|
166
|
+
interface Item$f {
|
|
167
167
|
studentId: string;
|
|
168
168
|
studentName: string;
|
|
169
169
|
className: string;
|
|
@@ -172,7 +172,7 @@ interface Item$e {
|
|
|
172
172
|
/**
|
|
173
173
|
* Item
|
|
174
174
|
*/
|
|
175
|
-
interface Item$
|
|
175
|
+
interface Item$e {
|
|
176
176
|
lessonName: string;
|
|
177
177
|
studentName: string;
|
|
178
178
|
reflection: string;
|
|
@@ -182,7 +182,7 @@ interface Item$d {
|
|
|
182
182
|
/**
|
|
183
183
|
* Item
|
|
184
184
|
*/
|
|
185
|
-
interface Item$
|
|
185
|
+
interface Item$d {
|
|
186
186
|
studentName: string;
|
|
187
187
|
impactStatement: string;
|
|
188
188
|
}
|
|
@@ -190,7 +190,7 @@ interface Item$c {
|
|
|
190
190
|
/**
|
|
191
191
|
* Item
|
|
192
192
|
*/
|
|
193
|
-
interface Item$
|
|
193
|
+
interface Item$c {
|
|
194
194
|
badgeId: string;
|
|
195
195
|
name: string;
|
|
196
196
|
description: string;
|
|
@@ -200,7 +200,7 @@ interface Item$b {
|
|
|
200
200
|
/**
|
|
201
201
|
* Item
|
|
202
202
|
*/
|
|
203
|
-
interface Item$
|
|
203
|
+
interface Item$b {
|
|
204
204
|
lessonId: string;
|
|
205
205
|
name: string;
|
|
206
206
|
description: string;
|
|
@@ -219,20 +219,20 @@ type DashboardClass = {
|
|
|
219
219
|
*/
|
|
220
220
|
type DashboardProps = {
|
|
221
221
|
loading: boolean;
|
|
222
|
-
students: Item$
|
|
223
|
-
impacts: Item$
|
|
224
|
-
reflections: Item$
|
|
222
|
+
students: Item$f[];
|
|
223
|
+
impacts: Item$d[];
|
|
224
|
+
reflections: Item$e[];
|
|
225
225
|
classes: DashboardClass[];
|
|
226
|
-
badges: Item$
|
|
227
|
-
lessons: Item$
|
|
226
|
+
badges: Item$c[];
|
|
227
|
+
lessons: Item$b[];
|
|
228
228
|
classId: string;
|
|
229
229
|
percentageOfAccountsCreated: number;
|
|
230
230
|
percentageOfBadgesEarned: number;
|
|
231
231
|
percentageOfLessonsCompleted: number;
|
|
232
232
|
onClassChange: (classId: string) => void;
|
|
233
|
-
onViewStudentProfile: (student: Item$
|
|
234
|
-
onBadgeClick: (badge: Item$
|
|
235
|
-
onLessonClick: (lesson: Item$
|
|
233
|
+
onViewStudentProfile: (student: Item$f) => void;
|
|
234
|
+
onBadgeClick: (badge: Item$c) => void;
|
|
235
|
+
onLessonClick: (lesson: Item$b) => void;
|
|
236
236
|
};
|
|
237
237
|
/**
|
|
238
238
|
* Dashboard
|
|
@@ -244,7 +244,7 @@ declare const Dashboard: (props: DashboardProps) => JSX.Element;
|
|
|
244
244
|
/**
|
|
245
245
|
* Item
|
|
246
246
|
*/
|
|
247
|
-
type Item$
|
|
247
|
+
type Item$a = {
|
|
248
248
|
classId: string;
|
|
249
249
|
userId: string;
|
|
250
250
|
avatar: string;
|
|
@@ -263,7 +263,7 @@ type Item$9 = {
|
|
|
263
263
|
/**
|
|
264
264
|
* MemberItem
|
|
265
265
|
*/
|
|
266
|
-
type MemberItem = Item$
|
|
266
|
+
type MemberItem = Item$a;
|
|
267
267
|
/**
|
|
268
268
|
* ClassProps
|
|
269
269
|
*/
|
|
@@ -292,7 +292,7 @@ declare const Class: (props: ClassProps) => JSX.Element;
|
|
|
292
292
|
/**
|
|
293
293
|
* Item
|
|
294
294
|
*/
|
|
295
|
-
type Item$
|
|
295
|
+
type Item$9 = {
|
|
296
296
|
href: string;
|
|
297
297
|
classId: string;
|
|
298
298
|
name: string;
|
|
@@ -303,7 +303,7 @@ type Item$8 = {
|
|
|
303
303
|
/**
|
|
304
304
|
* ClassItem
|
|
305
305
|
*/
|
|
306
|
-
type ClassItem = Item$
|
|
306
|
+
type ClassItem = Item$9;
|
|
307
307
|
/**
|
|
308
308
|
* ClassesProps
|
|
309
309
|
*/
|
|
@@ -324,17 +324,16 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
|
|
|
324
324
|
/**
|
|
325
325
|
* Item
|
|
326
326
|
*/
|
|
327
|
-
interface Item$
|
|
327
|
+
interface Item$8 {
|
|
328
328
|
badgeId: string;
|
|
329
329
|
badgeName: string;
|
|
330
330
|
isComplete?: boolean;
|
|
331
|
-
lessons: Item$i[];
|
|
332
331
|
}
|
|
333
332
|
|
|
334
333
|
/**
|
|
335
334
|
* Item
|
|
336
335
|
*/
|
|
337
|
-
interface Item$
|
|
336
|
+
interface Item$7 {
|
|
338
337
|
lessonId: string;
|
|
339
338
|
lessonName: string;
|
|
340
339
|
questionName: string;
|
|
@@ -345,7 +344,7 @@ interface Item$6 {
|
|
|
345
344
|
/**
|
|
346
345
|
* Item
|
|
347
346
|
*/
|
|
348
|
-
interface Item$
|
|
347
|
+
interface Item$6 {
|
|
349
348
|
lessonId: string;
|
|
350
349
|
lessonName: string;
|
|
351
350
|
reflection: string;
|
|
@@ -362,9 +361,9 @@ type StudentProps = {
|
|
|
362
361
|
impactStatement: string;
|
|
363
362
|
numberOfProblemsSolved: number;
|
|
364
363
|
percentageOfLessonsCompleted: number;
|
|
365
|
-
badges: Item$
|
|
366
|
-
answers: Item$
|
|
367
|
-
reflections: Item$
|
|
364
|
+
badges: Item$8[];
|
|
365
|
+
answers: Item$7[];
|
|
366
|
+
reflections: Item$6[];
|
|
368
367
|
onBackClick: () => void;
|
|
369
368
|
};
|
|
370
369
|
declare const Student: (props: StudentProps) => JSX.Element;
|
|
@@ -398,7 +397,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
|
|
|
398
397
|
/**
|
|
399
398
|
* Item
|
|
400
399
|
*/
|
|
401
|
-
interface Item$
|
|
400
|
+
interface Item$5 {
|
|
402
401
|
studentName: string;
|
|
403
402
|
reflection: string;
|
|
404
403
|
rating: number;
|
|
@@ -407,7 +406,7 @@ interface Item$4 {
|
|
|
407
406
|
/**
|
|
408
407
|
* Item
|
|
409
408
|
*/
|
|
410
|
-
interface Item$
|
|
409
|
+
interface Item$4 {
|
|
411
410
|
questionName: string;
|
|
412
411
|
answer: string[];
|
|
413
412
|
}
|
|
@@ -415,12 +414,12 @@ interface Item$3 {
|
|
|
415
414
|
/**
|
|
416
415
|
* Item
|
|
417
416
|
*/
|
|
418
|
-
interface Item$
|
|
417
|
+
interface Item$3 {
|
|
419
418
|
userId: string;
|
|
420
419
|
avatar: string;
|
|
421
420
|
name: string;
|
|
422
421
|
email: string;
|
|
423
|
-
answers: Item$
|
|
422
|
+
answers: Item$4[];
|
|
424
423
|
isStarted?: boolean;
|
|
425
424
|
isComplete?: boolean;
|
|
426
425
|
href: string;
|
|
@@ -429,7 +428,7 @@ interface Item$2 {
|
|
|
429
428
|
/**
|
|
430
429
|
* Item
|
|
431
430
|
*/
|
|
432
|
-
interface Item$
|
|
431
|
+
interface Item$2 {
|
|
433
432
|
question: string;
|
|
434
433
|
answers: string[][];
|
|
435
434
|
choices?: string[];
|
|
@@ -439,7 +438,7 @@ interface Item$1 {
|
|
|
439
438
|
/**
|
|
440
439
|
* LessonUserItem
|
|
441
440
|
*/
|
|
442
|
-
type LessonUserItem = Item$
|
|
441
|
+
type LessonUserItem = Item$3;
|
|
443
442
|
/**
|
|
444
443
|
* LessonClass
|
|
445
444
|
*/
|
|
@@ -459,8 +458,8 @@ type LessonProps = {
|
|
|
459
458
|
classId: string;
|
|
460
459
|
classes: LessonClass[];
|
|
461
460
|
students: LessonUserItem[];
|
|
462
|
-
reflections: Item$
|
|
463
|
-
questions: Item$
|
|
461
|
+
reflections: Item$5[];
|
|
462
|
+
questions: Item$2[];
|
|
464
463
|
onBackClick: () => void;
|
|
465
464
|
onClassChange: (classId: string) => void;
|
|
466
465
|
onCopyLinkClick: () => void;
|
|
@@ -476,7 +475,7 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
|
|
|
476
475
|
/**
|
|
477
476
|
* Item
|
|
478
477
|
*/
|
|
479
|
-
interface Item {
|
|
478
|
+
interface Item$1 {
|
|
480
479
|
lessonId: string;
|
|
481
480
|
name: string;
|
|
482
481
|
description: string;
|
|
@@ -486,7 +485,7 @@ interface Item {
|
|
|
486
485
|
/**
|
|
487
486
|
* LessonItem
|
|
488
487
|
*/
|
|
489
|
-
type LessonItem = Item;
|
|
488
|
+
type LessonItem = Item$1;
|
|
490
489
|
/**
|
|
491
490
|
* LessonsProps
|
|
492
491
|
*/
|
|
@@ -502,6 +501,73 @@ type LessonsProps = {
|
|
|
502
501
|
*/
|
|
503
502
|
declare const Lessons: (props: LessonsProps) => JSX.Element;
|
|
504
503
|
|
|
504
|
+
/**
|
|
505
|
+
* OrganizationProps
|
|
506
|
+
*/
|
|
507
|
+
type OrganizationProps = {
|
|
508
|
+
loading: boolean;
|
|
509
|
+
displayName: string;
|
|
510
|
+
description: string;
|
|
511
|
+
numberOfStudents: number;
|
|
512
|
+
numberOfEducators: number;
|
|
513
|
+
percentageOfAccountsActive: number;
|
|
514
|
+
accessCode: string;
|
|
515
|
+
peopleLink: string;
|
|
516
|
+
onBackClick: () => void;
|
|
517
|
+
onCopyAccessCode: () => void;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Organization
|
|
521
|
+
* @param props
|
|
522
|
+
* @constructor
|
|
523
|
+
*/
|
|
524
|
+
declare const Organization: (props: OrganizationProps) => JSX.Element;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* Item
|
|
528
|
+
*/
|
|
529
|
+
type Item = {
|
|
530
|
+
userId: string;
|
|
531
|
+
avatar: string;
|
|
532
|
+
email: string;
|
|
533
|
+
givenName: string;
|
|
534
|
+
familyName: string;
|
|
535
|
+
lastActivity: Date | null;
|
|
536
|
+
readonly: boolean;
|
|
537
|
+
hasAccount: boolean;
|
|
538
|
+
isAdmin: boolean;
|
|
539
|
+
isGroupAdmin: boolean;
|
|
540
|
+
numberOfClasses: number;
|
|
541
|
+
href: string;
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* UserItem
|
|
546
|
+
*/
|
|
547
|
+
type UserItem = Item;
|
|
548
|
+
/**
|
|
549
|
+
* PeopleProps
|
|
550
|
+
*/
|
|
551
|
+
type PeopleProps = {
|
|
552
|
+
loading: boolean;
|
|
553
|
+
users: UserItem[];
|
|
554
|
+
percentageOfAccountsCreated: number;
|
|
555
|
+
percentageRostered: number;
|
|
556
|
+
withOrganizationLink?: boolean;
|
|
557
|
+
onBackClick: () => void;
|
|
558
|
+
onCreateUsers: (users: UserItem[]) => void;
|
|
559
|
+
onDeleteUser: (user: UserItem) => void;
|
|
560
|
+
onChangeUserRole: (user: UserItem, role: string | null) => void;
|
|
561
|
+
onCopyLinkClick: () => void;
|
|
562
|
+
onAutocompleteChange: (next: string) => void;
|
|
563
|
+
};
|
|
564
|
+
/**
|
|
565
|
+
* Class
|
|
566
|
+
* @param props
|
|
567
|
+
* @constructor
|
|
568
|
+
*/
|
|
569
|
+
declare const People: (props: PeopleProps) => JSX.Element;
|
|
570
|
+
|
|
505
571
|
/**
|
|
506
572
|
* AdminProviderProps
|
|
507
573
|
*/
|
|
@@ -534,4 +600,4 @@ type AppProps = {
|
|
|
534
600
|
*/
|
|
535
601
|
declare const App: (props: AppProps) => JSX.Element;
|
|
536
602
|
|
|
537
|
-
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, NestedNavbar, NestedNavbarProps, Student, StudentProps, SwitchAccount, SwitchAccountProps };
|
|
603
|
+
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, NestedNavbar, NestedNavbarProps, Organization, OrganizationProps, People, PeopleProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, UserItem };
|