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

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,47 +109,6 @@ 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
-
153
112
  type IconProps = {
154
113
  size?: number;
155
114
  };
@@ -402,11 +361,22 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
402
361
  };
403
362
 
404
363
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
+ country: string;
365
+ emails: {
366
+ studentsList: string;
367
+ };
405
368
  symbols: {
406
369
  decimalSeparator: string;
407
370
  };
408
- emails: {
409
- studentsList: string;
371
+ date: {
372
+ use24HourFormat: boolean;
373
+ locale: DateLocale;
374
+ formats: {
375
+ full: DateFormat;
376
+ dayMonth: DateFormat;
377
+ hoursMinutes: DateFormat;
378
+ fullWithSeconds: DateFormat;
379
+ };
410
380
  };
411
381
  urls: {
412
382
  specialBook: string;
@@ -437,17 +407,24 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
437
407
  };
438
408
  firstLoginBooks: {
439
409
  isLargeGrade: ((grade: number) => boolean) | null;
440
- useHighSchoolGrades: boolean;
441
- withGradeZero: boolean;
442
- };
443
- progressStats: {
444
- forceHSGrades: boolean;
445
410
  };
446
- heatMap: {
447
- forceHSGrades: boolean;
411
+ grades: {
412
+ showPrefix: boolean;
413
+ showOtherGrade: boolean;
448
414
  };
449
- classesFilter: {
450
- forceHSGrades: boolean;
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
+ };
451
428
  };
452
429
  };
453
430
 
@@ -483,25 +460,9 @@ type WebAdminLocaleConfig = {
483
460
  type CommonLocaleConfig = Readonly<{
484
461
  name: string;
485
462
  languageName: string;
486
- country: string;
487
463
  languageHeader: string;
488
464
  contentLocale: Locale;
489
465
  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
- };
505
466
  }>;
506
467
  type LocalePreset = {
507
468
  [Platform.STUDENTS_WEB]: {
@@ -525,8 +486,6 @@ type LocalePreset = {
525
486
  };
526
487
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
527
488
 
528
- type DistrictLocaleConfig = CommonLocaleConfig;
529
-
530
489
  type DevOverrides<P extends Platform> = {
531
490
  [K in Locale]?: Partial<EnvironmentVars<P>>;
532
491
  };
@@ -572,4 +531,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
572
531
  };
573
532
  }
574
533
 
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 };
534
+ export { ApiRegion, AppConfigManager, DateFormat, DateLocale, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, Platform, PlatformBuildTarget, SSO, type SSOConfig, Source, buildTargetToEnvironment };
package/dist/index.d.ts CHANGED
@@ -109,47 +109,6 @@ 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
-
153
112
  type IconProps = {
154
113
  size?: number;
155
114
  };
@@ -402,11 +361,22 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
402
361
  };
403
362
 
404
363
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
+ country: string;
365
+ emails: {
366
+ studentsList: string;
367
+ };
405
368
  symbols: {
406
369
  decimalSeparator: string;
407
370
  };
408
- emails: {
409
- studentsList: string;
371
+ date: {
372
+ use24HourFormat: boolean;
373
+ locale: DateLocale;
374
+ formats: {
375
+ full: DateFormat;
376
+ dayMonth: DateFormat;
377
+ hoursMinutes: DateFormat;
378
+ fullWithSeconds: DateFormat;
379
+ };
410
380
  };
411
381
  urls: {
412
382
  specialBook: string;
@@ -437,17 +407,24 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
437
407
  };
438
408
  firstLoginBooks: {
439
409
  isLargeGrade: ((grade: number) => boolean) | null;
440
- useHighSchoolGrades: boolean;
441
- withGradeZero: boolean;
442
- };
443
- progressStats: {
444
- forceHSGrades: boolean;
445
410
  };
446
- heatMap: {
447
- forceHSGrades: boolean;
411
+ grades: {
412
+ showPrefix: boolean;
413
+ showOtherGrade: boolean;
448
414
  };
449
- classesFilter: {
450
- forceHSGrades: boolean;
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
+ };
451
428
  };
452
429
  };
453
430
 
@@ -483,25 +460,9 @@ type WebAdminLocaleConfig = {
483
460
  type CommonLocaleConfig = Readonly<{
484
461
  name: string;
485
462
  languageName: string;
486
- country: string;
487
463
  languageHeader: string;
488
464
  contentLocale: Locale;
489
465
  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
- };
505
466
  }>;
506
467
  type LocalePreset = {
507
468
  [Platform.STUDENTS_WEB]: {
@@ -525,8 +486,6 @@ type LocalePreset = {
525
486
  };
526
487
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
527
488
 
528
- type DistrictLocaleConfig = CommonLocaleConfig;
529
-
530
489
  type DevOverrides<P extends Platform> = {
531
490
  [K in Locale]?: Partial<EnvironmentVars<P>>;
532
491
  };
@@ -572,4 +531,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
572
531
  };
573
532
  }
574
533
 
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 };
534
+ export { ApiRegion, AppConfigManager, DateFormat, DateLocale, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, Platform, PlatformBuildTarget, SSO, type SSOConfig, Source, buildTargetToEnvironment };