@local-civics/mgmt-ui 0.1.242 → 0.1.244

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
@@ -88,7 +88,7 @@ type PageHeaderBreadcrumbSegment = {
88
88
  /**
89
89
  * Item
90
90
  */
91
- interface Item$o {
91
+ interface Item$i {
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$n {
101
+ interface Item$h {
102
102
  userId: string;
103
103
  avatar: string;
104
104
  name: string;
105
105
  email: string;
106
106
  isComplete?: boolean;
107
- lessons: Item$o[];
107
+ lessons: Item$i[];
108
108
  }
109
109
 
110
110
  /**
111
111
  * Item
112
112
  */
113
- interface Item$m {
113
+ interface Item$g {
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$n;
123
+ type BadgeUserItem = Item$h;
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$m[];
142
+ lessons: Item$g[];
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$l {
167
+ interface Item$f {
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$l;
181
+ type BadgeItem = Item$f;
182
182
  /**
183
183
  * BadgesProps
184
184
  */
@@ -203,88 +203,7 @@ declare const Badges: (props: BadgesProps) => JSX.Element;
203
203
  /**
204
204
  * Item
205
205
  */
206
- interface Item$k {
207
- studentId: string;
208
- studentName: string;
209
- className: string;
210
- }
211
-
212
- /**
213
- * Item
214
- */
215
- interface Item$j {
216
- lessonName: string;
217
- studentName: string;
218
- reflection: string;
219
- updatedAt: string;
220
- }
221
-
222
- /**
223
- * Item
224
- */
225
- interface Item$i {
226
- studentName: string;
227
- impactStatement: string;
228
- }
229
-
230
- /**
231
- * Item
232
- */
233
- interface Item$h {
234
- badgeId: string;
235
- name: string;
236
- description: string;
237
- percentageCompletion: number;
238
- }
239
-
240
- /**
241
- * Item
242
- */
243
- interface Item$g {
244
- lessonId: string;
245
- name: string;
246
- description: string;
247
- percentageCompletion: number;
248
- }
249
-
250
- /**
251
- * DashboardClass
252
- */
253
- type DashboardClass = {
254
- classId: string;
255
- name: string;
256
- };
257
- /**
258
- * DashboardProps
259
- */
260
- type DashboardProps = {
261
- loading: boolean;
262
- students: Item$k[];
263
- impacts: Item$i[];
264
- reflections: Item$j[];
265
- classes: DashboardClass[];
266
- badges: Item$h[];
267
- lessons: Item$g[];
268
- classId: string;
269
- percentageOfAccountsCreated: number;
270
- numberOfBadgesEarned: number;
271
- numberOfLessonsCompleted: number;
272
- onClassChange: (classId: string) => void;
273
- onViewStudentProfile: (student: Item$k) => void;
274
- onBadgeClick: (badge: Item$h) => void;
275
- onLessonClick: (lesson: Item$g) => void;
276
- };
277
- /**
278
- * Dashboard
279
- * @param props
280
- * @constructor
281
- */
282
- declare const Dashboard: (props: DashboardProps) => JSX.Element;
283
-
284
- /**
285
- * Item
286
- */
287
- type Item$f = {
206
+ type Item$e = {
288
207
  classId: string;
289
208
  userId: string;
290
209
  avatar: string;
@@ -303,7 +222,7 @@ type Item$f = {
303
222
  /**
304
223
  * MemberItem
305
224
  */
306
- type MemberItem = Item$f;
225
+ type MemberItem = Item$e;
307
226
  /**
308
227
  * ClassProps
309
228
  */
@@ -334,7 +253,7 @@ declare const Class: (props: ClassProps) => JSX.Element;
334
253
  /**
335
254
  * Item
336
255
  */
337
- type Item$e = {
256
+ type Item$d = {
338
257
  href: string;
339
258
  classId: string;
340
259
  name: string;
@@ -345,7 +264,7 @@ type Item$e = {
345
264
  /**
346
265
  * ClassItem
347
266
  */
348
- type ClassItem = Item$e;
267
+ type ClassItem = Item$d;
349
268
  /**
350
269
  * ClassesProps
351
270
  */
@@ -366,19 +285,23 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
366
285
  /**
367
286
  * Item
368
287
  */
369
- interface Item$d {
288
+ interface Item$c {
370
289
  badgeId: string;
371
290
  badgeName: string;
372
291
  isComplete?: boolean;
292
+ pathwayId?: string;
293
+ pathwayName?: string;
373
294
  }
374
295
 
375
296
  /**
376
297
  * Item
377
298
  */
378
- interface Item$c {
299
+ interface Item$b {
379
300
  lessonId: string;
380
301
  lessonName: string;
381
302
  badgeName?: string;
303
+ pathwayId?: string;
304
+ pathwayName?: string;
382
305
  questionName: string;
383
306
  answer: string[];
384
307
  href: string;
@@ -387,10 +310,12 @@ interface Item$c {
387
310
  /**
388
311
  * Item
389
312
  */
390
- interface Item$b {
313
+ interface Item$a {
391
314
  lessonId: string;
392
315
  lessonName: string;
393
316
  badgeName?: string;
317
+ pathwayId?: string;
318
+ pathwayName?: string;
394
319
  reflection: string;
395
320
  rating: number;
396
321
  href: string;
@@ -406,12 +331,13 @@ type StudentProps = {
406
331
  numberOfProblemsSolved: number;
407
332
  percentageOfLessonsCompleted: number;
408
333
  numberOfLessonsCompleted: number;
409
- badges: Item$d[];
334
+ badges: Item$c[];
410
335
  lessons: LessonItem$1[];
411
- answers: Item$c[];
412
- reflections: Item$b[];
336
+ answers: Item$b[];
337
+ reflections: Item$a[];
413
338
  onBackClick: () => void;
414
339
  onFileLockerClick?: () => void;
340
+ onViewPathway?: (pathwayId: string) => void;
415
341
  };
416
342
  type LessonItem$1 = {
417
343
  lessonId: string;
@@ -435,12 +361,13 @@ type HomeProps = {
435
361
  website: string;
436
362
  accessCode: string;
437
363
  };
438
- onDashboardClick: () => void;
439
364
  onClassesClick: () => void;
440
365
  onPathwaysClick: () => void;
441
366
  onBadgesClick: () => void;
442
367
  onLessonsClick: () => void;
443
368
  onFileLockerClick: () => void;
369
+ onCommentsClick: () => void;
370
+ onValidationClick: () => void;
444
371
  };
445
372
  /**
446
373
  * Home
@@ -449,15 +376,6 @@ type HomeProps = {
449
376
  */
450
377
  declare const Home: (props: HomeProps) => JSX.Element;
451
378
 
452
- /**
453
- * Item
454
- */
455
- interface Item$a {
456
- studentName: string;
457
- reflection: string;
458
- rating: number;
459
- }
460
-
461
379
  /**
462
380
  * Item
463
381
  */
@@ -475,6 +393,8 @@ interface Item$8 {
475
393
  name: string;
476
394
  email: string;
477
395
  answers: Item$9[];
396
+ reflection?: string;
397
+ rating?: number;
478
398
  isStarted?: boolean;
479
399
  isComplete?: boolean;
480
400
  href: string;
@@ -513,7 +433,6 @@ type LessonProps = {
513
433
  classId: string;
514
434
  classes: LessonClass[];
515
435
  students: LessonUserItem[];
516
- reflections: Item$a[];
517
436
  questions: Item$7[];
518
437
  trial?: boolean;
519
438
  lessonsCompleted?: number;
@@ -1101,4 +1020,4 @@ type ValidationCenterProps = {
1101
1020
  */
1102
1021
  declare const ValidationCenter: (props: ValidationCenterProps) => JSX.Element;
1103
1022
 
1104
- export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, CommentCenter, CommentCenterClass, CommentCenterItem, CommentCenterProps, 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, ValidationCenter, ValidationCenterBadge, ValidationCenterClass, ValidationCenterProps, ValidationCenterStudent };
1023
+ export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, CommentCenter, CommentCenterClass, CommentCenterItem, CommentCenterProps, 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, ValidationCenter, ValidationCenterBadge, ValidationCenterClass, ValidationCenterProps, ValidationCenterStudent };