@local-civics/mgmt-ui 0.1.67 → 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 -42
- package/dist/index.js +545 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +559 -180
- 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,7 +324,7 @@ 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;
|
|
@@ -333,7 +333,7 @@ interface Item$7 {
|
|
|
333
333
|
/**
|
|
334
334
|
* Item
|
|
335
335
|
*/
|
|
336
|
-
interface Item$
|
|
336
|
+
interface Item$7 {
|
|
337
337
|
lessonId: string;
|
|
338
338
|
lessonName: string;
|
|
339
339
|
questionName: string;
|
|
@@ -344,7 +344,7 @@ interface Item$6 {
|
|
|
344
344
|
/**
|
|
345
345
|
* Item
|
|
346
346
|
*/
|
|
347
|
-
interface Item$
|
|
347
|
+
interface Item$6 {
|
|
348
348
|
lessonId: string;
|
|
349
349
|
lessonName: string;
|
|
350
350
|
reflection: string;
|
|
@@ -361,9 +361,9 @@ type StudentProps = {
|
|
|
361
361
|
impactStatement: string;
|
|
362
362
|
numberOfProblemsSolved: number;
|
|
363
363
|
percentageOfLessonsCompleted: number;
|
|
364
|
-
badges: Item$
|
|
365
|
-
answers: Item$
|
|
366
|
-
reflections: Item$
|
|
364
|
+
badges: Item$8[];
|
|
365
|
+
answers: Item$7[];
|
|
366
|
+
reflections: Item$6[];
|
|
367
367
|
onBackClick: () => void;
|
|
368
368
|
};
|
|
369
369
|
declare const Student: (props: StudentProps) => JSX.Element;
|
|
@@ -397,7 +397,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
|
|
|
397
397
|
/**
|
|
398
398
|
* Item
|
|
399
399
|
*/
|
|
400
|
-
interface Item$
|
|
400
|
+
interface Item$5 {
|
|
401
401
|
studentName: string;
|
|
402
402
|
reflection: string;
|
|
403
403
|
rating: number;
|
|
@@ -406,7 +406,7 @@ interface Item$4 {
|
|
|
406
406
|
/**
|
|
407
407
|
* Item
|
|
408
408
|
*/
|
|
409
|
-
interface Item$
|
|
409
|
+
interface Item$4 {
|
|
410
410
|
questionName: string;
|
|
411
411
|
answer: string[];
|
|
412
412
|
}
|
|
@@ -414,12 +414,12 @@ interface Item$3 {
|
|
|
414
414
|
/**
|
|
415
415
|
* Item
|
|
416
416
|
*/
|
|
417
|
-
interface Item$
|
|
417
|
+
interface Item$3 {
|
|
418
418
|
userId: string;
|
|
419
419
|
avatar: string;
|
|
420
420
|
name: string;
|
|
421
421
|
email: string;
|
|
422
|
-
answers: Item$
|
|
422
|
+
answers: Item$4[];
|
|
423
423
|
isStarted?: boolean;
|
|
424
424
|
isComplete?: boolean;
|
|
425
425
|
href: string;
|
|
@@ -428,7 +428,7 @@ interface Item$2 {
|
|
|
428
428
|
/**
|
|
429
429
|
* Item
|
|
430
430
|
*/
|
|
431
|
-
interface Item$
|
|
431
|
+
interface Item$2 {
|
|
432
432
|
question: string;
|
|
433
433
|
answers: string[][];
|
|
434
434
|
choices?: string[];
|
|
@@ -438,7 +438,7 @@ interface Item$1 {
|
|
|
438
438
|
/**
|
|
439
439
|
* LessonUserItem
|
|
440
440
|
*/
|
|
441
|
-
type LessonUserItem = Item$
|
|
441
|
+
type LessonUserItem = Item$3;
|
|
442
442
|
/**
|
|
443
443
|
* LessonClass
|
|
444
444
|
*/
|
|
@@ -458,8 +458,8 @@ type LessonProps = {
|
|
|
458
458
|
classId: string;
|
|
459
459
|
classes: LessonClass[];
|
|
460
460
|
students: LessonUserItem[];
|
|
461
|
-
reflections: Item$
|
|
462
|
-
questions: Item$
|
|
461
|
+
reflections: Item$5[];
|
|
462
|
+
questions: Item$2[];
|
|
463
463
|
onBackClick: () => void;
|
|
464
464
|
onClassChange: (classId: string) => void;
|
|
465
465
|
onCopyLinkClick: () => void;
|
|
@@ -475,7 +475,7 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
|
|
|
475
475
|
/**
|
|
476
476
|
* Item
|
|
477
477
|
*/
|
|
478
|
-
interface Item {
|
|
478
|
+
interface Item$1 {
|
|
479
479
|
lessonId: string;
|
|
480
480
|
name: string;
|
|
481
481
|
description: string;
|
|
@@ -485,7 +485,7 @@ interface Item {
|
|
|
485
485
|
/**
|
|
486
486
|
* LessonItem
|
|
487
487
|
*/
|
|
488
|
-
type LessonItem = Item;
|
|
488
|
+
type LessonItem = Item$1;
|
|
489
489
|
/**
|
|
490
490
|
* LessonsProps
|
|
491
491
|
*/
|
|
@@ -501,6 +501,73 @@ type LessonsProps = {
|
|
|
501
501
|
*/
|
|
502
502
|
declare const Lessons: (props: LessonsProps) => JSX.Element;
|
|
503
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
|
+
|
|
504
571
|
/**
|
|
505
572
|
* AdminProviderProps
|
|
506
573
|
*/
|
|
@@ -533,4 +600,4 @@ type AppProps = {
|
|
|
533
600
|
*/
|
|
534
601
|
declare const App: (props: AppProps) => JSX.Element;
|
|
535
602
|
|
|
536
|
-
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 };
|