@magmamath/frontend-config 0.0.1-rc.5 → 0.0.1-rc.7

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
@@ -31,7 +31,10 @@ declare enum DateLocale {
31
31
  declare enum Platform {
32
32
  STUDENTS_WEB = "STUDENTS",
33
33
  TEACHERS_WEB = "TEACHERS",
34
- DISTRICT_DASHBOARD = "DISTRICT"
34
+ DISTRICT_DASHBOARD = "DISTRICT",
35
+ AUTH_WEB = "AUTH_WEB",
36
+ STUDENTS_APP = "STUDENTS_RN_APP",
37
+ TEACHERS_APP = "TEACHERS_RN_APP"
35
38
  }
36
39
  declare enum Locale {
37
40
  US = "en-SE",
@@ -46,6 +49,11 @@ declare enum Environment {
46
49
  PROD = "PROD"
47
50
  }
48
51
 
52
+ declare enum MatrixMode {
53
+ SKILL = "SKILL",
54
+ STANDARD = "STANDARD"
55
+ }
56
+
49
57
  type RegionEnv = Readonly<{
50
58
  API_URL: string;
51
59
  AUTH_WEB_URL: string;
@@ -110,6 +118,9 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
110
118
  statsTab: {
111
119
  buttonWithMinWidth: boolean;
112
120
  };
121
+ smartEval: {
122
+ language: string;
123
+ };
113
124
  };
114
125
 
115
126
  type DistrictLocaleConfig = CommonLocaleConfig & {
@@ -126,11 +137,6 @@ type DistrictLocaleConfig = CommonLocaleConfig & {
126
137
  };
127
138
  };
128
139
 
129
- declare enum MatrixMode {
130
- SKILL = "SKILL",
131
- STANDARD = "STANDARD"
132
- }
133
-
134
140
  type TeachersLocaleConfig = CommonLocaleConfig & {
135
141
  emails: {
136
142
  studentsList: string;
@@ -198,6 +204,15 @@ type LocalePreset = {
198
204
  [Platform.DISTRICT_DASHBOARD]: {
199
205
  [key in Locale]: DistrictLocaleConfig;
200
206
  };
207
+ [Platform.AUTH_WEB]: {
208
+ [key in Locale]: unknown;
209
+ };
210
+ [Platform.STUDENTS_APP]: {
211
+ [key in Locale]: unknown;
212
+ };
213
+ [Platform.TEACHERS_APP]: {
214
+ [key in Locale]: unknown;
215
+ };
201
216
  };
202
217
  type LocaleConfig<P extends Platform> = LocalePreset[P][Locale];
203
218
 
@@ -228,4 +243,4 @@ declare class AppConfigManager<P extends Platform> {
228
243
  };
229
244
  }
230
245
 
231
- export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, Platform };
246
+ export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, MatrixMode, Platform };
package/dist/index.d.ts CHANGED
@@ -31,7 +31,10 @@ declare enum DateLocale {
31
31
  declare enum Platform {
32
32
  STUDENTS_WEB = "STUDENTS",
33
33
  TEACHERS_WEB = "TEACHERS",
34
- DISTRICT_DASHBOARD = "DISTRICT"
34
+ DISTRICT_DASHBOARD = "DISTRICT",
35
+ AUTH_WEB = "AUTH_WEB",
36
+ STUDENTS_APP = "STUDENTS_RN_APP",
37
+ TEACHERS_APP = "TEACHERS_RN_APP"
35
38
  }
36
39
  declare enum Locale {
37
40
  US = "en-SE",
@@ -46,6 +49,11 @@ declare enum Environment {
46
49
  PROD = "PROD"
47
50
  }
48
51
 
52
+ declare enum MatrixMode {
53
+ SKILL = "SKILL",
54
+ STANDARD = "STANDARD"
55
+ }
56
+
49
57
  type RegionEnv = Readonly<{
50
58
  API_URL: string;
51
59
  AUTH_WEB_URL: string;
@@ -110,6 +118,9 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
110
118
  statsTab: {
111
119
  buttonWithMinWidth: boolean;
112
120
  };
121
+ smartEval: {
122
+ language: string;
123
+ };
113
124
  };
114
125
 
115
126
  type DistrictLocaleConfig = CommonLocaleConfig & {
@@ -126,11 +137,6 @@ type DistrictLocaleConfig = CommonLocaleConfig & {
126
137
  };
127
138
  };
128
139
 
129
- declare enum MatrixMode {
130
- SKILL = "SKILL",
131
- STANDARD = "STANDARD"
132
- }
133
-
134
140
  type TeachersLocaleConfig = CommonLocaleConfig & {
135
141
  emails: {
136
142
  studentsList: string;
@@ -198,6 +204,15 @@ type LocalePreset = {
198
204
  [Platform.DISTRICT_DASHBOARD]: {
199
205
  [key in Locale]: DistrictLocaleConfig;
200
206
  };
207
+ [Platform.AUTH_WEB]: {
208
+ [key in Locale]: unknown;
209
+ };
210
+ [Platform.STUDENTS_APP]: {
211
+ [key in Locale]: unknown;
212
+ };
213
+ [Platform.TEACHERS_APP]: {
214
+ [key in Locale]: unknown;
215
+ };
201
216
  };
202
217
  type LocaleConfig<P extends Platform> = LocalePreset[P][Locale];
203
218
 
@@ -228,4 +243,4 @@ declare class AppConfigManager<P extends Platform> {
228
243
  };
229
244
  }
230
245
 
231
- export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, Platform };
246
+ export { AppConfigManager, DateFormat, DateLocale, Environment, Locale, MatrixMode, Platform };
package/dist/index.js CHANGED
@@ -38,6 +38,9 @@ var Platform = /* @__PURE__ */ ((Platform3) => {
38
38
  Platform3["STUDENTS_WEB"] = "STUDENTS";
39
39
  Platform3["TEACHERS_WEB"] = "TEACHERS";
40
40
  Platform3["DISTRICT_DASHBOARD"] = "DISTRICT";
41
+ Platform3["AUTH_WEB"] = "AUTH_WEB";
42
+ Platform3["STUDENTS_APP"] = "STUDENTS_RN_APP";
43
+ Platform3["TEACHERS_APP"] = "TEACHERS_RN_APP";
41
44
  return Platform3;
42
45
  })(Platform || {});
43
46
  var Locale = /* @__PURE__ */ ((Locale2) => {
@@ -55,6 +58,13 @@ var Environment = /* @__PURE__ */ ((Environment3) => {
55
58
  return Environment3;
56
59
  })(Environment || {});
57
60
 
61
+ // src/shared/matrix.constants.ts
62
+ var MatrixMode = /* @__PURE__ */ ((MatrixMode2) => {
63
+ MatrixMode2["SKILL"] = "SKILL";
64
+ MatrixMode2["STANDARD"] = "STANDARD";
65
+ return MatrixMode2;
66
+ })(MatrixMode || {});
67
+
58
68
  // src/configs/env/env.common.mars.ts
59
69
  var ENV_COMMON_MARS = {
60
70
  DESMOS_API_KEY: "",
@@ -753,7 +763,7 @@ var ENV_AUTH_WEB_SCT_PROD = {
753
763
 
754
764
  // src/configs/env/env.preset.ts
755
765
  var ENV_PRESET = {
756
- [Platform.AUTH_WEB]: {
766
+ ["AUTH_WEB" /* AUTH_WEB */]: {
757
767
  ["en-SE" /* US */]: {
758
768
  ["MARS" /* MARS */]: ENV_AUTH_WEB_US_MARS,
759
769
  ["PROD" /* PROD */]: ENV_AUTH_WEB_US_PROD
@@ -857,7 +867,7 @@ var ENV_PRESET = {
857
867
  ["PROD" /* PROD */]: ENV_DISTRICT_DE_PROD
858
868
  }
859
869
  },
860
- [Platform.STUDENTS_APP]: {
870
+ ["STUDENTS_RN_APP" /* STUDENTS_APP */]: {
861
871
  ["en-SE" /* US */]: {
862
872
  ["MARS" /* MARS */]: ENV_STUDENTS_WEB_US_MARS,
863
873
  ["PROD" /* PROD */]: ENV_STUDENTS_WEB_US_PROD
@@ -883,7 +893,7 @@ var ENV_PRESET = {
883
893
  ["PROD" /* PROD */]: ENV_STUDENTS_WEB_DE_PROD
884
894
  }
885
895
  },
886
- [Platform.TEACHERS_APP]: {
896
+ ["TEACHERS_RN_APP" /* TEACHERS_APP */]: {
887
897
  ["en-SE" /* US */]: {
888
898
  ["MARS" /* MARS */]: ENV_TEACHERS_WEB_US_MARS,
889
899
  ["PROD" /* PROD */]: ENV_TEACHERS_WEB_US_PROD
@@ -957,6 +967,9 @@ var LOCALE_STUDENTS_US = {
957
967
  },
958
968
  statsTab: {
959
969
  buttonWithMinWidth: false
970
+ },
971
+ smartEval: {
972
+ language: "en-SE"
960
973
  }
961
974
  };
962
975
 
@@ -1006,6 +1019,9 @@ var LOCALE_STUDENTS_SE = {
1006
1019
  },
1007
1020
  statsTab: {
1008
1021
  buttonWithMinWidth: true
1022
+ },
1023
+ smartEval: {
1024
+ language: "sv"
1009
1025
  }
1010
1026
  };
1011
1027
 
@@ -1055,6 +1071,9 @@ var LOCALE_STUDENTS_GB = {
1055
1071
  },
1056
1072
  statsTab: {
1057
1073
  buttonWithMinWidth: false
1074
+ },
1075
+ smartEval: {
1076
+ language: "en-GB"
1058
1077
  }
1059
1078
  };
1060
1079
 
@@ -1104,6 +1123,9 @@ var LOCALE_STUDENTS_CA = {
1104
1123
  },
1105
1124
  statsTab: {
1106
1125
  buttonWithMinWidth: false
1126
+ },
1127
+ smartEval: {
1128
+ language: "en-CA"
1107
1129
  }
1108
1130
  };
1109
1131
 
@@ -1153,6 +1175,9 @@ var LOCALE_STUDENTS_SCT = {
1153
1175
  },
1154
1176
  statsTab: {
1155
1177
  buttonWithMinWidth: false
1178
+ },
1179
+ smartEval: {
1180
+ language: "en-SCT"
1156
1181
  }
1157
1182
  };
1158
1183
 
@@ -1202,6 +1227,9 @@ var LOCALE_STUDENTS_DE = {
1202
1227
  },
1203
1228
  statsTab: {
1204
1229
  buttonWithMinWidth: false
1230
+ },
1231
+ smartEval: {
1232
+ language: "de-DE"
1205
1233
  }
1206
1234
  };
1207
1235
 
@@ -1681,6 +1709,30 @@ var LOCALE_PRESET = {
1681
1709
  ["en-CA" /* CA */]: LOCALE_DISTRICT_CA,
1682
1710
  ["en-SCT" /* SCT */]: LOCALE_DISTRICT_SCT,
1683
1711
  ["de-DE" /* DE */]: LOCALE_DISTRICT_DE
1712
+ },
1713
+ ["AUTH_WEB" /* AUTH_WEB */]: {
1714
+ ["en-SE" /* US */]: {},
1715
+ ["sv-SE" /* SE */]: {},
1716
+ ["en-GB" /* GB */]: {},
1717
+ ["en-CA" /* CA */]: {},
1718
+ ["en-SCT" /* SCT */]: {},
1719
+ ["de-DE" /* DE */]: {}
1720
+ },
1721
+ ["STUDENTS_RN_APP" /* STUDENTS_APP */]: {
1722
+ ["en-SE" /* US */]: {},
1723
+ ["sv-SE" /* SE */]: {},
1724
+ ["en-GB" /* GB */]: {},
1725
+ ["en-CA" /* CA */]: {},
1726
+ ["en-SCT" /* SCT */]: {},
1727
+ ["de-DE" /* DE */]: {}
1728
+ },
1729
+ ["TEACHERS_RN_APP" /* TEACHERS_APP */]: {
1730
+ ["en-SE" /* US */]: {},
1731
+ ["sv-SE" /* SE */]: {},
1732
+ ["en-GB" /* GB */]: {},
1733
+ ["en-CA" /* CA */]: {},
1734
+ ["en-SCT" /* SCT */]: {},
1735
+ ["de-DE" /* DE */]: {}
1684
1736
  }
1685
1737
  };
1686
1738
 
@@ -1724,6 +1776,7 @@ exports.DateFormat = DateFormat;
1724
1776
  exports.DateLocale = DateLocale;
1725
1777
  exports.Environment = Environment;
1726
1778
  exports.Locale = Locale;
1779
+ exports.MatrixMode = MatrixMode;
1727
1780
  exports.Platform = Platform;
1728
1781
  //# sourceMappingURL=index.js.map
1729
1782
  //# sourceMappingURL=index.js.map