@magmamath/frontend-config 1.0.24-rc.19 → 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,48 +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
- fullName?: string;
149
- };
150
- type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
151
- 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;
152
- 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;
153
-
154
112
  type IconProps = {
155
113
  size?: number;
156
114
  };
@@ -403,11 +361,22 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
403
361
  };
404
362
 
405
363
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
+ country: string;
365
+ emails: {
366
+ studentsList: string;
367
+ };
406
368
  symbols: {
407
369
  decimalSeparator: string;
408
370
  };
409
- emails: {
410
- 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
+ };
411
380
  };
412
381
  urls: {
413
382
  specialBook: string;
@@ -438,17 +407,24 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
438
407
  };
439
408
  firstLoginBooks: {
440
409
  isLargeGrade: ((grade: number) => boolean) | null;
441
- useHighSchoolGrades: boolean;
442
- withGradeZero: boolean;
443
- };
444
- progressStats: {
445
- forceHSGrades: boolean;
446
410
  };
447
- heatMap: {
448
- forceHSGrades: boolean;
411
+ grades: {
412
+ showPrefix: boolean;
413
+ showOtherGrade: boolean;
449
414
  };
450
- classesFilter: {
451
- 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
+ };
452
428
  };
453
429
  };
454
430
 
@@ -484,25 +460,9 @@ type WebAdminLocaleConfig = {
484
460
  type CommonLocaleConfig = Readonly<{
485
461
  name: string;
486
462
  languageName: string;
487
- country: string;
488
463
  languageHeader: string;
489
464
  contentLocale: Locale;
490
465
  shortCode: string;
491
- date: {
492
- use24HourFormat: boolean;
493
- locale: string;
494
- formats: {
495
- dayMonth: string;
496
- dayMonthYear: string;
497
- hoursMinutes: string;
498
- full: string;
499
- fullWithSeconds: string;
500
- };
501
- };
502
- grades: {
503
- primary: Partial<Record<PrimaryGrades, GradeData>>;
504
- highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
505
- };
506
466
  }>;
507
467
  type LocalePreset = {
508
468
  [Platform.STUDENTS_WEB]: {
@@ -526,8 +486,6 @@ type LocalePreset = {
526
486
  };
527
487
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
528
488
 
529
- type DistrictLocaleConfig = CommonLocaleConfig;
530
-
531
489
  type DevOverrides<P extends Platform> = {
532
490
  [K in Locale]?: Partial<EnvironmentVars<P>>;
533
491
  };
@@ -573,4 +531,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
573
531
  };
574
532
  }
575
533
 
576
- 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,48 +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
- fullName?: string;
149
- };
150
- type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
151
- 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;
152
- 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;
153
-
154
112
  type IconProps = {
155
113
  size?: number;
156
114
  };
@@ -403,11 +361,22 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
403
361
  };
404
362
 
405
363
  type TeachersLocaleConfig = CommonLocaleConfig & {
364
+ country: string;
365
+ emails: {
366
+ studentsList: string;
367
+ };
406
368
  symbols: {
407
369
  decimalSeparator: string;
408
370
  };
409
- emails: {
410
- 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
+ };
411
380
  };
412
381
  urls: {
413
382
  specialBook: string;
@@ -438,17 +407,24 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
438
407
  };
439
408
  firstLoginBooks: {
440
409
  isLargeGrade: ((grade: number) => boolean) | null;
441
- useHighSchoolGrades: boolean;
442
- withGradeZero: boolean;
443
- };
444
- progressStats: {
445
- forceHSGrades: boolean;
446
410
  };
447
- heatMap: {
448
- forceHSGrades: boolean;
411
+ grades: {
412
+ showPrefix: boolean;
413
+ showOtherGrade: boolean;
449
414
  };
450
- classesFilter: {
451
- 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
+ };
452
428
  };
453
429
  };
454
430
 
@@ -484,25 +460,9 @@ type WebAdminLocaleConfig = {
484
460
  type CommonLocaleConfig = Readonly<{
485
461
  name: string;
486
462
  languageName: string;
487
- country: string;
488
463
  languageHeader: string;
489
464
  contentLocale: Locale;
490
465
  shortCode: string;
491
- date: {
492
- use24HourFormat: boolean;
493
- locale: string;
494
- formats: {
495
- dayMonth: string;
496
- dayMonthYear: string;
497
- hoursMinutes: string;
498
- full: string;
499
- fullWithSeconds: string;
500
- };
501
- };
502
- grades: {
503
- primary: Partial<Record<PrimaryGrades, GradeData>>;
504
- highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
505
- };
506
466
  }>;
507
467
  type LocalePreset = {
508
468
  [Platform.STUDENTS_WEB]: {
@@ -526,8 +486,6 @@ type LocalePreset = {
526
486
  };
527
487
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
528
488
 
529
- type DistrictLocaleConfig = CommonLocaleConfig;
530
-
531
489
  type DevOverrides<P extends Platform> = {
532
490
  [K in Locale]?: Partial<EnvironmentVars<P>>;
533
491
  };
@@ -573,4 +531,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
573
531
  };
574
532
  }
575
533
 
576
- 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 };