@local-civics/mgmt-ui 0.1.242 → 0.1.243
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 +40 -41
- package/dist/index.js +134 -112
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +134 -112
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ type PageHeaderBreadcrumbSegment = {
|
|
|
88
88
|
/**
|
|
89
89
|
* Item
|
|
90
90
|
*/
|
|
91
|
-
interface Item$
|
|
91
|
+
interface Item$n {
|
|
92
92
|
lessonName: string;
|
|
93
93
|
completion: number;
|
|
94
94
|
isStarted?: boolean;
|
|
@@ -98,19 +98,19 @@ interface Item$o {
|
|
|
98
98
|
/**
|
|
99
99
|
* Item
|
|
100
100
|
*/
|
|
101
|
-
interface Item$
|
|
101
|
+
interface Item$m {
|
|
102
102
|
userId: string;
|
|
103
103
|
avatar: string;
|
|
104
104
|
name: string;
|
|
105
105
|
email: string;
|
|
106
106
|
isComplete?: boolean;
|
|
107
|
-
lessons: Item$
|
|
107
|
+
lessons: Item$n[];
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Item
|
|
112
112
|
*/
|
|
113
|
-
interface Item$
|
|
113
|
+
interface Item$l {
|
|
114
114
|
lessonId: string;
|
|
115
115
|
lessonName: string;
|
|
116
116
|
percentageCompletion: number;
|
|
@@ -120,7 +120,7 @@ interface Item$m {
|
|
|
120
120
|
/**
|
|
121
121
|
* BadgeUserItem
|
|
122
122
|
*/
|
|
123
|
-
type BadgeUserItem = Item$
|
|
123
|
+
type BadgeUserItem = Item$m;
|
|
124
124
|
/**
|
|
125
125
|
* BadgeClass
|
|
126
126
|
*/
|
|
@@ -139,7 +139,7 @@ type BadgeProps = {
|
|
|
139
139
|
imageURL?: string;
|
|
140
140
|
weight?: number;
|
|
141
141
|
classes: BadgeClass[];
|
|
142
|
-
lessons: Item$
|
|
142
|
+
lessons: Item$l[];
|
|
143
143
|
classId: string;
|
|
144
144
|
students: BadgeUserItem[];
|
|
145
145
|
href: string;
|
|
@@ -164,7 +164,7 @@ declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
|
164
164
|
/**
|
|
165
165
|
* Item
|
|
166
166
|
*/
|
|
167
|
-
interface Item$
|
|
167
|
+
interface Item$k {
|
|
168
168
|
badgeId: string;
|
|
169
169
|
name: string;
|
|
170
170
|
description?: string;
|
|
@@ -178,7 +178,7 @@ interface Item$l {
|
|
|
178
178
|
/**
|
|
179
179
|
* BadgeItem
|
|
180
180
|
*/
|
|
181
|
-
type BadgeItem = Item$
|
|
181
|
+
type BadgeItem = Item$k;
|
|
182
182
|
/**
|
|
183
183
|
* BadgesProps
|
|
184
184
|
*/
|
|
@@ -203,7 +203,7 @@ declare const Badges: (props: BadgesProps) => JSX.Element;
|
|
|
203
203
|
/**
|
|
204
204
|
* Item
|
|
205
205
|
*/
|
|
206
|
-
interface Item$
|
|
206
|
+
interface Item$j {
|
|
207
207
|
studentId: string;
|
|
208
208
|
studentName: string;
|
|
209
209
|
className: string;
|
|
@@ -212,7 +212,7 @@ interface Item$k {
|
|
|
212
212
|
/**
|
|
213
213
|
* Item
|
|
214
214
|
*/
|
|
215
|
-
interface Item$
|
|
215
|
+
interface Item$i {
|
|
216
216
|
lessonName: string;
|
|
217
217
|
studentName: string;
|
|
218
218
|
reflection: string;
|
|
@@ -222,7 +222,7 @@ interface Item$j {
|
|
|
222
222
|
/**
|
|
223
223
|
* Item
|
|
224
224
|
*/
|
|
225
|
-
interface Item$
|
|
225
|
+
interface Item$h {
|
|
226
226
|
studentName: string;
|
|
227
227
|
impactStatement: string;
|
|
228
228
|
}
|
|
@@ -230,7 +230,7 @@ interface Item$i {
|
|
|
230
230
|
/**
|
|
231
231
|
* Item
|
|
232
232
|
*/
|
|
233
|
-
interface Item$
|
|
233
|
+
interface Item$g {
|
|
234
234
|
badgeId: string;
|
|
235
235
|
name: string;
|
|
236
236
|
description: string;
|
|
@@ -240,7 +240,7 @@ interface Item$h {
|
|
|
240
240
|
/**
|
|
241
241
|
* Item
|
|
242
242
|
*/
|
|
243
|
-
interface Item$
|
|
243
|
+
interface Item$f {
|
|
244
244
|
lessonId: string;
|
|
245
245
|
name: string;
|
|
246
246
|
description: string;
|
|
@@ -259,20 +259,20 @@ type DashboardClass = {
|
|
|
259
259
|
*/
|
|
260
260
|
type DashboardProps = {
|
|
261
261
|
loading: boolean;
|
|
262
|
-
students: Item$
|
|
263
|
-
impacts: Item$
|
|
264
|
-
reflections: Item$
|
|
262
|
+
students: Item$j[];
|
|
263
|
+
impacts: Item$h[];
|
|
264
|
+
reflections: Item$i[];
|
|
265
265
|
classes: DashboardClass[];
|
|
266
|
-
badges: Item$
|
|
267
|
-
lessons: Item$
|
|
266
|
+
badges: Item$g[];
|
|
267
|
+
lessons: Item$f[];
|
|
268
268
|
classId: string;
|
|
269
269
|
percentageOfAccountsCreated: number;
|
|
270
270
|
numberOfBadgesEarned: number;
|
|
271
271
|
numberOfLessonsCompleted: number;
|
|
272
272
|
onClassChange: (classId: string) => void;
|
|
273
|
-
onViewStudentProfile: (student: Item$
|
|
274
|
-
onBadgeClick: (badge: Item$
|
|
275
|
-
onLessonClick: (lesson: Item$
|
|
273
|
+
onViewStudentProfile: (student: Item$j) => void;
|
|
274
|
+
onBadgeClick: (badge: Item$g) => void;
|
|
275
|
+
onLessonClick: (lesson: Item$f) => void;
|
|
276
276
|
};
|
|
277
277
|
/**
|
|
278
278
|
* Dashboard
|
|
@@ -284,7 +284,7 @@ declare const Dashboard: (props: DashboardProps) => JSX.Element;
|
|
|
284
284
|
/**
|
|
285
285
|
* Item
|
|
286
286
|
*/
|
|
287
|
-
type Item$
|
|
287
|
+
type Item$e = {
|
|
288
288
|
classId: string;
|
|
289
289
|
userId: string;
|
|
290
290
|
avatar: string;
|
|
@@ -303,7 +303,7 @@ type Item$f = {
|
|
|
303
303
|
/**
|
|
304
304
|
* MemberItem
|
|
305
305
|
*/
|
|
306
|
-
type MemberItem = Item$
|
|
306
|
+
type MemberItem = Item$e;
|
|
307
307
|
/**
|
|
308
308
|
* ClassProps
|
|
309
309
|
*/
|
|
@@ -334,7 +334,7 @@ declare const Class: (props: ClassProps) => JSX.Element;
|
|
|
334
334
|
/**
|
|
335
335
|
* Item
|
|
336
336
|
*/
|
|
337
|
-
type Item$
|
|
337
|
+
type Item$d = {
|
|
338
338
|
href: string;
|
|
339
339
|
classId: string;
|
|
340
340
|
name: string;
|
|
@@ -345,7 +345,7 @@ type Item$e = {
|
|
|
345
345
|
/**
|
|
346
346
|
* ClassItem
|
|
347
347
|
*/
|
|
348
|
-
type ClassItem = Item$
|
|
348
|
+
type ClassItem = Item$d;
|
|
349
349
|
/**
|
|
350
350
|
* ClassesProps
|
|
351
351
|
*/
|
|
@@ -366,19 +366,23 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
|
|
|
366
366
|
/**
|
|
367
367
|
* Item
|
|
368
368
|
*/
|
|
369
|
-
interface Item$
|
|
369
|
+
interface Item$c {
|
|
370
370
|
badgeId: string;
|
|
371
371
|
badgeName: string;
|
|
372
372
|
isComplete?: boolean;
|
|
373
|
+
pathwayId?: string;
|
|
374
|
+
pathwayName?: string;
|
|
373
375
|
}
|
|
374
376
|
|
|
375
377
|
/**
|
|
376
378
|
* Item
|
|
377
379
|
*/
|
|
378
|
-
interface Item$
|
|
380
|
+
interface Item$b {
|
|
379
381
|
lessonId: string;
|
|
380
382
|
lessonName: string;
|
|
381
383
|
badgeName?: string;
|
|
384
|
+
pathwayId?: string;
|
|
385
|
+
pathwayName?: string;
|
|
382
386
|
questionName: string;
|
|
383
387
|
answer: string[];
|
|
384
388
|
href: string;
|
|
@@ -387,10 +391,12 @@ interface Item$c {
|
|
|
387
391
|
/**
|
|
388
392
|
* Item
|
|
389
393
|
*/
|
|
390
|
-
interface Item$
|
|
394
|
+
interface Item$a {
|
|
391
395
|
lessonId: string;
|
|
392
396
|
lessonName: string;
|
|
393
397
|
badgeName?: string;
|
|
398
|
+
pathwayId?: string;
|
|
399
|
+
pathwayName?: string;
|
|
394
400
|
reflection: string;
|
|
395
401
|
rating: number;
|
|
396
402
|
href: string;
|
|
@@ -406,12 +412,13 @@ type StudentProps = {
|
|
|
406
412
|
numberOfProblemsSolved: number;
|
|
407
413
|
percentageOfLessonsCompleted: number;
|
|
408
414
|
numberOfLessonsCompleted: number;
|
|
409
|
-
badges: Item$
|
|
415
|
+
badges: Item$c[];
|
|
410
416
|
lessons: LessonItem$1[];
|
|
411
|
-
answers: Item$
|
|
412
|
-
reflections: Item$
|
|
417
|
+
answers: Item$b[];
|
|
418
|
+
reflections: Item$a[];
|
|
413
419
|
onBackClick: () => void;
|
|
414
420
|
onFileLockerClick?: () => void;
|
|
421
|
+
onViewPathway?: (pathwayId: string) => void;
|
|
415
422
|
};
|
|
416
423
|
type LessonItem$1 = {
|
|
417
424
|
lessonId: string;
|
|
@@ -449,15 +456,6 @@ type HomeProps = {
|
|
|
449
456
|
*/
|
|
450
457
|
declare const Home: (props: HomeProps) => JSX.Element;
|
|
451
458
|
|
|
452
|
-
/**
|
|
453
|
-
* Item
|
|
454
|
-
*/
|
|
455
|
-
interface Item$a {
|
|
456
|
-
studentName: string;
|
|
457
|
-
reflection: string;
|
|
458
|
-
rating: number;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
459
|
/**
|
|
462
460
|
* Item
|
|
463
461
|
*/
|
|
@@ -475,6 +473,8 @@ interface Item$8 {
|
|
|
475
473
|
name: string;
|
|
476
474
|
email: string;
|
|
477
475
|
answers: Item$9[];
|
|
476
|
+
reflection?: string;
|
|
477
|
+
rating?: number;
|
|
478
478
|
isStarted?: boolean;
|
|
479
479
|
isComplete?: boolean;
|
|
480
480
|
href: string;
|
|
@@ -513,7 +513,6 @@ type LessonProps = {
|
|
|
513
513
|
classId: string;
|
|
514
514
|
classes: LessonClass[];
|
|
515
515
|
students: LessonUserItem[];
|
|
516
|
-
reflections: Item$a[];
|
|
517
516
|
questions: Item$7[];
|
|
518
517
|
trial?: boolean;
|
|
519
518
|
lessonsCompleted?: number;
|