@magmamath/frontend-config 1.0.24-rc.2 → 1.0.24-rc.20

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.mts CHANGED
@@ -109,6 +109,47 @@ declare enum MatrixMode {
109
109
  STANDARD = "STANDARD"
110
110
  }
111
111
 
112
+ declare enum Grade {
113
+ OTHER = -1,
114
+ ZERO = 0,
115
+ ONE = 1,
116
+ TWO = 2,
117
+ THREE = 3,
118
+ FOUR = 4,
119
+ FIVE = 5,
120
+ SIX = 6,
121
+ SEVEN = 7,
122
+ EIGHT = 8,
123
+ NINE = 9,
124
+ TEN = 10,
125
+ ELEVEN = 11,
126
+ TWELVE = 12,
127
+ THIRTEEN = 13,
128
+ ALGEBRA_1 = 21,
129
+ GEOMETRY = 22,
130
+ ALGEBRA_2 = 23,
131
+ INTEGRATED_MATH_I = 24,
132
+ INTEGRATED_MATH_II = 25,
133
+ INTEGRATED_MATH_III = 26,
134
+ PRECALCULUS = 27,
135
+ HS = "HS",
136
+ HSG = "HSG",
137
+ HSA = "HSA",
138
+ HSS = "HSS",
139
+ HSF = "HSF",
140
+ HSN = "HSN",
141
+ K = "K"
142
+ }
143
+
144
+ type GradeData = {
145
+ name: string;
146
+ displayOnly?: boolean;
147
+ noPrefix?: boolean;
148
+ };
149
+ type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
150
+ type PrimaryGrades = CommonGrades | Grade.ONE | Grade.TWO | Grade.THREE | Grade.FOUR | Grade.FIVE | Grade.SIX | Grade.SEVEN | Grade.EIGHT | Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.THIRTEEN;
151
+ type HighSchoolGrades = Grade.ALGEBRA_1 | Grade.GEOMETRY | Grade.ALGEBRA_2 | Grade.INTEGRATED_MATH_I | Grade.INTEGRATED_MATH_II | Grade.INTEGRATED_MATH_III | Grade.PRECALCULUS | Grade.HS | Grade.HSG | Grade.HSA | Grade.HSS | Grade.HSF | Grade.HSN;
152
+
112
153
  type IconProps = {
113
154
  size?: number;
114
155
  };
@@ -361,22 +402,11 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
361
402
  };
362
403
 
363
404
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
- country: string;
365
- emails: {
366
- studentsList: string;
367
- };
368
405
  symbols: {
369
406
  decimalSeparator: string;
370
407
  };
371
- date: {
372
- use24HourFormat: boolean;
373
- locale: DateLocale;
374
- formats: {
375
- full: DateFormat;
376
- dayMonth: DateFormat;
377
- hoursMinutes: DateFormat;
378
- fullWithSeconds: DateFormat;
379
- };
408
+ emails: {
409
+ studentsList: string;
380
410
  };
381
411
  urls: {
382
412
  specialBook: string;
@@ -407,24 +437,17 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
407
437
  };
408
438
  firstLoginBooks: {
409
439
  isLargeGrade: ((grade: number) => boolean) | null;
440
+ useHighSchoolGrades: boolean;
441
+ withGradeZero: boolean;
410
442
  };
411
- grades: {
412
- showPrefix: boolean;
413
- showOtherGrade: boolean;
443
+ progressStats: {
444
+ forceHSGrades: boolean;
414
445
  };
415
- };
416
-
417
- type DistrictLocaleConfig = CommonLocaleConfig & {
418
- date: {
419
- use24HourFormat: boolean;
420
- locale: DateLocale;
421
- formats: {
422
- full: DateFormat;
423
- dayMonthYear: DateFormat;
424
- dayMonth: DateFormat;
425
- hoursMinutes: DateFormat;
426
- fullWithSeconds: DateFormat;
427
- };
446
+ heatMap: {
447
+ forceHSGrades: boolean;
448
+ };
449
+ classesFilter: {
450
+ forceHSGrades: boolean;
428
451
  };
429
452
  };
430
453
 
@@ -460,9 +483,25 @@ type WebAdminLocaleConfig = {
460
483
  type CommonLocaleConfig = Readonly<{
461
484
  name: string;
462
485
  languageName: string;
486
+ country: string;
463
487
  languageHeader: string;
464
488
  contentLocale: Locale;
465
489
  shortCode: string;
490
+ date: {
491
+ use24HourFormat: boolean;
492
+ locale: string;
493
+ formats: {
494
+ dayMonth: string;
495
+ dayMonthYear: string;
496
+ hoursMinutes: string;
497
+ full: string;
498
+ fullWithSeconds: string;
499
+ };
500
+ };
501
+ grades: {
502
+ primary: Partial<Record<PrimaryGrades, GradeData>>;
503
+ highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
504
+ };
466
505
  }>;
467
506
  type LocalePreset = {
468
507
  [Platform.STUDENTS_WEB]: {
@@ -486,6 +525,8 @@ type LocalePreset = {
486
525
  };
487
526
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
488
527
 
528
+ type DistrictLocaleConfig = CommonLocaleConfig;
529
+
489
530
  type DevOverrides<P extends Platform> = {
490
531
  [K in Locale]?: Partial<EnvironmentVars<P>>;
491
532
  };
@@ -531,4 +572,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
531
572
  };
532
573
  }
533
574
 
534
- export { ApiRegion, AppConfigManager, DateFormat, DateLocale, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, Platform, PlatformBuildTarget, SSO, type SSOConfig, Source, buildTargetToEnvironment };
575
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CommonGrades, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
package/dist/index.d.ts CHANGED
@@ -109,6 +109,47 @@ declare enum MatrixMode {
109
109
  STANDARD = "STANDARD"
110
110
  }
111
111
 
112
+ declare enum Grade {
113
+ OTHER = -1,
114
+ ZERO = 0,
115
+ ONE = 1,
116
+ TWO = 2,
117
+ THREE = 3,
118
+ FOUR = 4,
119
+ FIVE = 5,
120
+ SIX = 6,
121
+ SEVEN = 7,
122
+ EIGHT = 8,
123
+ NINE = 9,
124
+ TEN = 10,
125
+ ELEVEN = 11,
126
+ TWELVE = 12,
127
+ THIRTEEN = 13,
128
+ ALGEBRA_1 = 21,
129
+ GEOMETRY = 22,
130
+ ALGEBRA_2 = 23,
131
+ INTEGRATED_MATH_I = 24,
132
+ INTEGRATED_MATH_II = 25,
133
+ INTEGRATED_MATH_III = 26,
134
+ PRECALCULUS = 27,
135
+ HS = "HS",
136
+ HSG = "HSG",
137
+ HSA = "HSA",
138
+ HSS = "HSS",
139
+ HSF = "HSF",
140
+ HSN = "HSN",
141
+ K = "K"
142
+ }
143
+
144
+ type GradeData = {
145
+ name: string;
146
+ displayOnly?: boolean;
147
+ noPrefix?: boolean;
148
+ };
149
+ type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
150
+ type PrimaryGrades = CommonGrades | Grade.ONE | Grade.TWO | Grade.THREE | Grade.FOUR | Grade.FIVE | Grade.SIX | Grade.SEVEN | Grade.EIGHT | Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.THIRTEEN;
151
+ type HighSchoolGrades = Grade.ALGEBRA_1 | Grade.GEOMETRY | Grade.ALGEBRA_2 | Grade.INTEGRATED_MATH_I | Grade.INTEGRATED_MATH_II | Grade.INTEGRATED_MATH_III | Grade.PRECALCULUS | Grade.HS | Grade.HSG | Grade.HSA | Grade.HSS | Grade.HSF | Grade.HSN;
152
+
112
153
  type IconProps = {
113
154
  size?: number;
114
155
  };
@@ -361,22 +402,11 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
361
402
  };
362
403
 
363
404
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
- country: string;
365
- emails: {
366
- studentsList: string;
367
- };
368
405
  symbols: {
369
406
  decimalSeparator: string;
370
407
  };
371
- date: {
372
- use24HourFormat: boolean;
373
- locale: DateLocale;
374
- formats: {
375
- full: DateFormat;
376
- dayMonth: DateFormat;
377
- hoursMinutes: DateFormat;
378
- fullWithSeconds: DateFormat;
379
- };
408
+ emails: {
409
+ studentsList: string;
380
410
  };
381
411
  urls: {
382
412
  specialBook: string;
@@ -407,24 +437,17 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
407
437
  };
408
438
  firstLoginBooks: {
409
439
  isLargeGrade: ((grade: number) => boolean) | null;
440
+ useHighSchoolGrades: boolean;
441
+ withGradeZero: boolean;
410
442
  };
411
- grades: {
412
- showPrefix: boolean;
413
- showOtherGrade: boolean;
443
+ progressStats: {
444
+ forceHSGrades: boolean;
414
445
  };
415
- };
416
-
417
- type DistrictLocaleConfig = CommonLocaleConfig & {
418
- date: {
419
- use24HourFormat: boolean;
420
- locale: DateLocale;
421
- formats: {
422
- full: DateFormat;
423
- dayMonthYear: DateFormat;
424
- dayMonth: DateFormat;
425
- hoursMinutes: DateFormat;
426
- fullWithSeconds: DateFormat;
427
- };
446
+ heatMap: {
447
+ forceHSGrades: boolean;
448
+ };
449
+ classesFilter: {
450
+ forceHSGrades: boolean;
428
451
  };
429
452
  };
430
453
 
@@ -460,9 +483,25 @@ type WebAdminLocaleConfig = {
460
483
  type CommonLocaleConfig = Readonly<{
461
484
  name: string;
462
485
  languageName: string;
486
+ country: string;
463
487
  languageHeader: string;
464
488
  contentLocale: Locale;
465
489
  shortCode: string;
490
+ date: {
491
+ use24HourFormat: boolean;
492
+ locale: string;
493
+ formats: {
494
+ dayMonth: string;
495
+ dayMonthYear: string;
496
+ hoursMinutes: string;
497
+ full: string;
498
+ fullWithSeconds: string;
499
+ };
500
+ };
501
+ grades: {
502
+ primary: Partial<Record<PrimaryGrades, GradeData>>;
503
+ highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
504
+ };
466
505
  }>;
467
506
  type LocalePreset = {
468
507
  [Platform.STUDENTS_WEB]: {
@@ -486,6 +525,8 @@ type LocalePreset = {
486
525
  };
487
526
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
488
527
 
528
+ type DistrictLocaleConfig = CommonLocaleConfig;
529
+
489
530
  type DevOverrides<P extends Platform> = {
490
531
  [K in Locale]?: Partial<EnvironmentVars<P>>;
491
532
  };
@@ -531,4 +572,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
531
572
  };
532
573
  }
533
574
 
534
- export { ApiRegion, AppConfigManager, DateFormat, DateLocale, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, Platform, PlatformBuildTarget, SSO, type SSOConfig, Source, buildTargetToEnvironment };
575
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CommonGrades, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };