@magmamath/frontend-config 1.2.0-rc.0 → 1.2.1-rc.0

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
@@ -43,8 +43,7 @@ declare enum Platform {
43
43
  DISTRICT_DASHBOARD = "DISTRICT",
44
44
  AUTH_WEB = "AUTH_WEB",
45
45
  WEB_ADMIN = "WEB_ADMIN",
46
- MOBILE = "MOBILE",
47
- PARENT_WEB = "PARENT_WEB"
46
+ MOBILE = "MOBILE"
48
47
  }
49
48
  declare enum Environment {
50
49
  MARS = "MARS",
@@ -160,10 +159,10 @@ declare enum NumberDecimalSeparator {
160
159
  COMMA = ","
161
160
  }
162
161
  declare enum NumberGroupingSeparator {
163
- SPACE = "space",
164
- COMMA = "comma",
165
- DOT = "dot",
166
- APOSTROPHE = "apostrophe"
162
+ SPACE = " ",
163
+ COMMA = ",",
164
+ DOT = ".",
165
+ APOSTROPHE = "'"
167
166
  }
168
167
 
169
168
  declare enum TTSOverrideSymbol {
@@ -383,7 +382,6 @@ type RegionSpecificVars = {
383
382
  DISTRICT_WEB_URL: string;
384
383
  LOGGLY_TAG: string;
385
384
  MAGMAMATH_URL: string;
386
- PARENT_WEB_URL: string;
387
385
  SOCKET_URL: string;
388
386
  STUDENTS_WEB_URL: string;
389
387
  TEACHERS_WEB_URL: string;
@@ -564,17 +562,6 @@ type WebAdminVarsPreset = {
564
562
  };
565
563
  };
566
564
 
567
- type ParentWebVars = {
568
- API_URL: string;
569
- CDN_HOST: string;
570
- AUTH_WEB_URL: string;
571
- };
572
- type ParentWebVarsPreset = {
573
- [key in Locale]: {
574
- [key in Environment]: ParentWebVars;
575
- };
576
- };
577
-
578
565
  type EnvPreset = Readonly<{
579
566
  [Platform.STUDENTS_WEB]: StudentsWebVarsPreset;
580
567
  [Platform.TEACHERS_WEB]: TeachersWebVarsPreset;
@@ -582,7 +569,6 @@ type EnvPreset = Readonly<{
582
569
  [Platform.AUTH_WEB]: AuthWebVarsPreset;
583
570
  [Platform.WEB_ADMIN]: WebAdminVarsPreset;
584
571
  [Platform.MOBILE]: MobileVarsPreset;
585
- [Platform.PARENT_WEB]: ParentWebVarsPreset;
586
572
  }>;
587
573
  type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
588
574
 
@@ -604,6 +590,15 @@ declare enum KeyboardTimeVariant {
604
590
  H24 = "H24"
605
591
  }
606
592
 
593
+ declare enum DrawboardCoinVariant {
594
+ DEFAULT = "default",
595
+ US = "us",
596
+ EURO = "euro",
597
+ CA = "ca",
598
+ UK = "uk",
599
+ SE = "se"
600
+ }
601
+
607
602
  type KeyboardConfig = {
608
603
  preset: KeyboardPreset;
609
604
  currencyVariant: KeyboardCurrencyVariant;
@@ -622,6 +617,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
622
617
  keyboard: KeyboardConfig;
623
618
  drawboard: {
624
619
  basicManipulativesMaxGrade: number;
620
+ coinVariant: DrawboardCoinVariant;
625
621
  };
626
622
  exampleSolutions: {
627
623
  languageName: string;
@@ -755,8 +751,6 @@ type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthL
755
751
  calendar: CalendarConfig;
756
752
  };
757
753
 
758
- type ParentWebLocaleConfig = CommonLocaleConfig;
759
-
760
754
  declare enum MultiplicationSymbol {
761
755
  CDOT = "CDOT",
762
756
  TIMES = "TIMES"
@@ -798,9 +792,6 @@ type LocalePreset = {
798
792
  [Platform.MOBILE]: {
799
793
  [key in Locale]: MobileLocaleConfig<MobileVars<SSOByLocale[key]>>;
800
794
  };
801
- [Platform.PARENT_WEB]: {
802
- [key in Locale]: ParentWebLocaleConfig;
803
- };
804
795
  };
805
796
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
806
797
 
@@ -865,4 +856,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
865
856
  };
866
857
  }
867
858
 
868
- export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, EN_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, type KeyboardConfig, KeyboardCurrencyVariant, KeyboardPreset, KeyboardTimeVariant, LANGUAGES_CONFIG, LANGUAGES_LIST, Language, type LanguageConfig, Locale, type LocaleLanguageData, LoginSource, MOST_USED_LANGUAGES, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NumberDecimalSeparator, NumberGroupingSeparator, PRIORITY_LANGUAGES, type ParentWebLocaleConfig, type ParentWebVars, type ParentWebVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, type ProblemCreatorConfig, ProblemCreatorDescriptionVariant, type ProblemCreatorKeyboardConfig, ProblemCreatorKeyboardPreset, ProblemCreatorMathEntryVariant, QRCodeSize, SE_CALENDAR_CONFIG, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
859
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, type KeyboardConfig, KeyboardCurrencyVariant, KeyboardPreset, KeyboardTimeVariant, LANGUAGES_CONFIG, LANGUAGES_LIST, Language, type LanguageConfig, Locale, type LocaleLanguageData, LoginSource, MOST_USED_LANGUAGES, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NumberDecimalSeparator, NumberGroupingSeparator, PRIORITY_LANGUAGES, Platform, PlatformBuildTarget, type PrimaryGrades, type ProblemCreatorConfig, ProblemCreatorDescriptionVariant, type ProblemCreatorKeyboardConfig, ProblemCreatorKeyboardPreset, ProblemCreatorMathEntryVariant, QRCodeSize, SE_CALENDAR_CONFIG, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
package/dist/index.d.ts CHANGED
@@ -43,8 +43,7 @@ declare enum Platform {
43
43
  DISTRICT_DASHBOARD = "DISTRICT",
44
44
  AUTH_WEB = "AUTH_WEB",
45
45
  WEB_ADMIN = "WEB_ADMIN",
46
- MOBILE = "MOBILE",
47
- PARENT_WEB = "PARENT_WEB"
46
+ MOBILE = "MOBILE"
48
47
  }
49
48
  declare enum Environment {
50
49
  MARS = "MARS",
@@ -160,10 +159,10 @@ declare enum NumberDecimalSeparator {
160
159
  COMMA = ","
161
160
  }
162
161
  declare enum NumberGroupingSeparator {
163
- SPACE = "space",
164
- COMMA = "comma",
165
- DOT = "dot",
166
- APOSTROPHE = "apostrophe"
162
+ SPACE = " ",
163
+ COMMA = ",",
164
+ DOT = ".",
165
+ APOSTROPHE = "'"
167
166
  }
168
167
 
169
168
  declare enum TTSOverrideSymbol {
@@ -383,7 +382,6 @@ type RegionSpecificVars = {
383
382
  DISTRICT_WEB_URL: string;
384
383
  LOGGLY_TAG: string;
385
384
  MAGMAMATH_URL: string;
386
- PARENT_WEB_URL: string;
387
385
  SOCKET_URL: string;
388
386
  STUDENTS_WEB_URL: string;
389
387
  TEACHERS_WEB_URL: string;
@@ -564,17 +562,6 @@ type WebAdminVarsPreset = {
564
562
  };
565
563
  };
566
564
 
567
- type ParentWebVars = {
568
- API_URL: string;
569
- CDN_HOST: string;
570
- AUTH_WEB_URL: string;
571
- };
572
- type ParentWebVarsPreset = {
573
- [key in Locale]: {
574
- [key in Environment]: ParentWebVars;
575
- };
576
- };
577
-
578
565
  type EnvPreset = Readonly<{
579
566
  [Platform.STUDENTS_WEB]: StudentsWebVarsPreset;
580
567
  [Platform.TEACHERS_WEB]: TeachersWebVarsPreset;
@@ -582,7 +569,6 @@ type EnvPreset = Readonly<{
582
569
  [Platform.AUTH_WEB]: AuthWebVarsPreset;
583
570
  [Platform.WEB_ADMIN]: WebAdminVarsPreset;
584
571
  [Platform.MOBILE]: MobileVarsPreset;
585
- [Platform.PARENT_WEB]: ParentWebVarsPreset;
586
572
  }>;
587
573
  type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
588
574
 
@@ -604,6 +590,15 @@ declare enum KeyboardTimeVariant {
604
590
  H24 = "H24"
605
591
  }
606
592
 
593
+ declare enum DrawboardCoinVariant {
594
+ DEFAULT = "default",
595
+ US = "us",
596
+ EURO = "euro",
597
+ CA = "ca",
598
+ UK = "uk",
599
+ SE = "se"
600
+ }
601
+
607
602
  type KeyboardConfig = {
608
603
  preset: KeyboardPreset;
609
604
  currencyVariant: KeyboardCurrencyVariant;
@@ -622,6 +617,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
622
617
  keyboard: KeyboardConfig;
623
618
  drawboard: {
624
619
  basicManipulativesMaxGrade: number;
620
+ coinVariant: DrawboardCoinVariant;
625
621
  };
626
622
  exampleSolutions: {
627
623
  languageName: string;
@@ -755,8 +751,6 @@ type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthL
755
751
  calendar: CalendarConfig;
756
752
  };
757
753
 
758
- type ParentWebLocaleConfig = CommonLocaleConfig;
759
-
760
754
  declare enum MultiplicationSymbol {
761
755
  CDOT = "CDOT",
762
756
  TIMES = "TIMES"
@@ -798,9 +792,6 @@ type LocalePreset = {
798
792
  [Platform.MOBILE]: {
799
793
  [key in Locale]: MobileLocaleConfig<MobileVars<SSOByLocale[key]>>;
800
794
  };
801
- [Platform.PARENT_WEB]: {
802
- [key in Locale]: ParentWebLocaleConfig;
803
- };
804
795
  };
805
796
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
806
797
 
@@ -865,4 +856,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
865
856
  };
866
857
  }
867
858
 
868
- export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, EN_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, type KeyboardConfig, KeyboardCurrencyVariant, KeyboardPreset, KeyboardTimeVariant, LANGUAGES_CONFIG, LANGUAGES_LIST, Language, type LanguageConfig, Locale, type LocaleLanguageData, LoginSource, MOST_USED_LANGUAGES, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NumberDecimalSeparator, NumberGroupingSeparator, PRIORITY_LANGUAGES, type ParentWebLocaleConfig, type ParentWebVars, type ParentWebVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, type ProblemCreatorConfig, ProblemCreatorDescriptionVariant, type ProblemCreatorKeyboardConfig, ProblemCreatorKeyboardPreset, ProblemCreatorMathEntryVariant, QRCodeSize, SE_CALENDAR_CONFIG, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
859
+ export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, type KeyboardConfig, KeyboardCurrencyVariant, KeyboardPreset, KeyboardTimeVariant, LANGUAGES_CONFIG, LANGUAGES_LIST, Language, type LanguageConfig, Locale, type LocaleLanguageData, LoginSource, MOST_USED_LANGUAGES, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NumberDecimalSeparator, NumberGroupingSeparator, PRIORITY_LANGUAGES, Platform, PlatformBuildTarget, type PrimaryGrades, type ProblemCreatorConfig, ProblemCreatorDescriptionVariant, type ProblemCreatorKeyboardConfig, ProblemCreatorKeyboardPreset, ProblemCreatorMathEntryVariant, QRCodeSize, SE_CALENDAR_CONFIG, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };