@magmamath/frontend-config 1.0.28 → 1.0.29-rc.3
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +30 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -263,6 +263,7 @@ type MobileCommon = {
|
|
|
263
263
|
GOOGLE_API_KEY: string;
|
|
264
264
|
GOOGLE_TEXT_TO_SPEECH_URL: string;
|
|
265
265
|
GOOGLE_TRANSLATE_URL: string;
|
|
266
|
+
SIGN_UP_BOOKING_ONBOARDING: string;
|
|
266
267
|
};
|
|
267
268
|
type MobileBaseVars = {
|
|
268
269
|
TEACHERS_WEB_URL: string;
|
|
@@ -271,6 +272,7 @@ type MobileBaseVars = {
|
|
|
271
272
|
CDN_HOST: string;
|
|
272
273
|
SOCKET_URL: string;
|
|
273
274
|
LOGGLY_TAG: string;
|
|
275
|
+
PROBLEM_CREATOR_URL: string;
|
|
274
276
|
} & MobileCommon;
|
|
275
277
|
type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
|
|
276
278
|
type MobileVarsPreset = {
|
package/dist/index.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ type MobileCommon = {
|
|
|
263
263
|
GOOGLE_API_KEY: string;
|
|
264
264
|
GOOGLE_TEXT_TO_SPEECH_URL: string;
|
|
265
265
|
GOOGLE_TRANSLATE_URL: string;
|
|
266
|
+
SIGN_UP_BOOKING_ONBOARDING: string;
|
|
266
267
|
};
|
|
267
268
|
type MobileBaseVars = {
|
|
268
269
|
TEACHERS_WEB_URL: string;
|
|
@@ -271,6 +272,7 @@ type MobileBaseVars = {
|
|
|
271
272
|
CDN_HOST: string;
|
|
272
273
|
SOCKET_URL: string;
|
|
273
274
|
LOGGLY_TAG: string;
|
|
275
|
+
PROBLEM_CREATOR_URL: string;
|
|
274
276
|
} & MobileCommon;
|
|
275
277
|
type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
|
|
276
278
|
type MobileVarsPreset = {
|
package/dist/index.js
CHANGED
|
@@ -1131,7 +1131,8 @@ var ENV_MOBILE_COMMON_MARS = {
|
|
|
1131
1131
|
MYSCRIPT_REST_HMAC_KEY: "e51e5489-c4d1-4996-8e22-7f0603b8f45a",
|
|
1132
1132
|
GOOGLE_API_KEY: "AIzaSyCJBFfT3AjV1WjitLfO0ub40WMlSSGooMc",
|
|
1133
1133
|
GOOGLE_TEXT_TO_SPEECH_URL: "https://texttospeech.googleapis.com/v1beta1/text:synthesize",
|
|
1134
|
-
GOOGLE_TRANSLATE_URL: "https://translation.googleapis.com/language/translate/v2"
|
|
1134
|
+
GOOGLE_TRANSLATE_URL: "https://translation.googleapis.com/language/translate/v2",
|
|
1135
|
+
SIGN_UP_BOOKING_ONBOARDING: "https://meetings-eu1.hubspot.com/meetings/martin-persson/onboarding-meeting?embed=true"
|
|
1135
1136
|
};
|
|
1136
1137
|
|
|
1137
1138
|
// src/configs/env/mobile/us/env.us.mars.ts
|
|
@@ -1147,13 +1148,14 @@ var ENV_MOBILE_US_MARS = {
|
|
|
1147
1148
|
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
1148
1149
|
CLASS_LINK_AUTH: "https://api.mars.magmamath.com/v2/auth/edlink-classlink",
|
|
1149
1150
|
SCHOOLOGY_AUTH: "https://api.mars.magmamath.com/v2/auth/edlink",
|
|
1150
|
-
CLEVER_AUTH: "https://api.mars.magmamath.com/v2/auth/clever"
|
|
1151
|
+
CLEVER_AUTH: "https://api.mars.magmamath.com/v2/auth/clever",
|
|
1152
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1151
1153
|
};
|
|
1152
1154
|
|
|
1153
1155
|
// src/configs/env/mobile/se/env.se.mars.ts
|
|
1154
1156
|
var ENV_MOBILE_SE_MARS = {
|
|
1155
1157
|
...ENV_MOBILE_COMMON_MARS,
|
|
1156
|
-
TEACHERS_WEB_URL:
|
|
1158
|
+
TEACHERS_WEB_URL: "https://teachers.mars.matteappen.se",
|
|
1157
1159
|
AUTH_WEB_URL: "https://app.mars.matteappen.se",
|
|
1158
1160
|
API_URL: "https://api.mars.matteappen.se/v2",
|
|
1159
1161
|
CDN_HOST: "https://cdn.mars.matteappen.se",
|
|
@@ -1162,7 +1164,8 @@ var ENV_MOBILE_SE_MARS = {
|
|
|
1162
1164
|
GOOGLE_AUTH: "https://api.mars.matteappen.se/v2/auth/google",
|
|
1163
1165
|
MICROSOFT_AUTH: "https://api.mars.matteappen.se/v2/auth/microsoft",
|
|
1164
1166
|
SKOLFEDERATION_AUTH: "https://fed.skolfederation.se/trial/ds/?entityID=TestMatteappen",
|
|
1165
|
-
SKOLON_AUTH: "https://api.mars.matteappen.se/v2/auth/skolon"
|
|
1167
|
+
SKOLON_AUTH: "https://api.mars.matteappen.se/v2/auth/skolon",
|
|
1168
|
+
PROBLEM_CREATOR_URL: "https://teachers.mars.matteappen.se/content/react-native/problems/add"
|
|
1166
1169
|
};
|
|
1167
1170
|
|
|
1168
1171
|
// src/configs/env/mobile/gb/env.gb.mars.ts
|
|
@@ -1177,7 +1180,8 @@ var ENV_MOBILE_GB_MARS = {
|
|
|
1177
1180
|
GOOGLE_AUTH: "https://api.mars.magmamath.com/v2/auth/google",
|
|
1178
1181
|
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
1179
1182
|
SKOLON_AUTH: "https://api.mars.magmamath.com/v2/auth/skolon",
|
|
1180
|
-
WONDE_AUTH: "https://api.mars.magmamath.com/v2/auth/mylogin"
|
|
1183
|
+
WONDE_AUTH: "https://api.mars.magmamath.com/v2/auth/mylogin",
|
|
1184
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1181
1185
|
};
|
|
1182
1186
|
|
|
1183
1187
|
// src/configs/env/mobile/ca/env.ca.mars.ts
|
|
@@ -1193,7 +1197,8 @@ var ENV_MOBILE_CA_MARS = {
|
|
|
1193
1197
|
MICROSOFT_AUTH: "https://api.ca.magmamath.com/v2/auth/microsoft",
|
|
1194
1198
|
CLASS_LINK_AUTH: "https://api.ca.magmamath.com/v2/auth/edlink-classlink",
|
|
1195
1199
|
SCHOOLOGY_AUTH: "https://api.ca.magmamath.com/v2/auth/edlink",
|
|
1196
|
-
CLEVER_AUTH: "https://api.ca.magmamath.com/v2/auth/clever"
|
|
1200
|
+
CLEVER_AUTH: "https://api.ca.magmamath.com/v2/auth/clever",
|
|
1201
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1197
1202
|
};
|
|
1198
1203
|
|
|
1199
1204
|
// src/configs/env/mobile/sct/env.sct.mars.ts
|
|
@@ -1208,7 +1213,8 @@ var ENV_MOBILE_SCT_MARS = {
|
|
|
1208
1213
|
GOOGLE_AUTH: "https://api.mars.magmamath.com/v2/auth/google",
|
|
1209
1214
|
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
1210
1215
|
SKOLON_AUTH: "https://api.mars.magmamath.com/v2/auth/skolon",
|
|
1211
|
-
WONDE_AUTH: "https://api.mars.magmamath.com/v2/auth/mylogin"
|
|
1216
|
+
WONDE_AUTH: "https://api.mars.magmamath.com/v2/auth/mylogin",
|
|
1217
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1212
1218
|
};
|
|
1213
1219
|
|
|
1214
1220
|
// src/configs/env/mobile/de/env.de.mars.ts
|
|
@@ -1221,7 +1227,8 @@ var ENV_MOBILE_DE_MARS = {
|
|
|
1221
1227
|
SOCKET_URL: "https://sockets-mars.magmamath.com",
|
|
1222
1228
|
LOGGLY_TAG: "MOBILE_MARS,MOBILE_MARS_DE",
|
|
1223
1229
|
GOOGLE_AUTH: "https://api.mars.magmamath.com/v2/auth/google",
|
|
1224
|
-
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft"
|
|
1230
|
+
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
1231
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1225
1232
|
};
|
|
1226
1233
|
|
|
1227
1234
|
// src/configs/env/mobile/env.common.prod.ts
|
|
@@ -1237,7 +1244,8 @@ var ENV_MOBILE_COMMON_PROD = {
|
|
|
1237
1244
|
MYSCRIPT_REST_HMAC_KEY: "e51e5489-c4d1-4996-8e22-7f0603b8f45a",
|
|
1238
1245
|
GOOGLE_API_KEY: "AIzaSyCJBFfT3AjV1WjitLfO0ub40WMlSSGooMc",
|
|
1239
1246
|
GOOGLE_TEXT_TO_SPEECH_URL: "https://texttospeech.googleapis.com/v1beta1/text:synthesize",
|
|
1240
|
-
GOOGLE_TRANSLATE_URL: "https://translation.googleapis.com/language/translate/v2"
|
|
1247
|
+
GOOGLE_TRANSLATE_URL: "https://translation.googleapis.com/language/translate/v2",
|
|
1248
|
+
SIGN_UP_BOOKING_ONBOARDING: "https://meetings-eu1.hubspot.com/meetings/martin-persson/onboarding-meeting?embed=true"
|
|
1241
1249
|
};
|
|
1242
1250
|
|
|
1243
1251
|
// src/configs/env/mobile/us/env.us.prod.ts
|
|
@@ -1253,13 +1261,14 @@ var ENV_MOBILE_US_PROD = {
|
|
|
1253
1261
|
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
1254
1262
|
CLASS_LINK_AUTH: "https://api.magmamath.com/v2/auth/edlink-classlink",
|
|
1255
1263
|
SCHOOLOGY_AUTH: "https://api.magmamath.com/v2/auth/edlink",
|
|
1256
|
-
CLEVER_AUTH: "https://api.magmamath.com/v2/auth/clever"
|
|
1264
|
+
CLEVER_AUTH: "https://api.magmamath.com/v2/auth/clever",
|
|
1265
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1257
1266
|
};
|
|
1258
1267
|
|
|
1259
1268
|
// src/configs/env/mobile/se/env.se.prod.ts
|
|
1260
1269
|
var ENV_MOBILE_SE_PROD = {
|
|
1261
1270
|
...ENV_MOBILE_COMMON_PROD,
|
|
1262
|
-
TEACHERS_WEB_URL:
|
|
1271
|
+
TEACHERS_WEB_URL: "https://teachers.matteappen.se",
|
|
1263
1272
|
AUTH_WEB_URL: "https://app.matteappen.se",
|
|
1264
1273
|
API_URL: "https://api.matteappen.se/v2",
|
|
1265
1274
|
CDN_HOST: "https://cdn.matteappen.se",
|
|
@@ -1268,7 +1277,8 @@ var ENV_MOBILE_SE_PROD = {
|
|
|
1268
1277
|
GOOGLE_AUTH: "https://api.matteappen.se/v2/auth/google",
|
|
1269
1278
|
MICROSOFT_AUTH: "https://api.matteappen.se/v2/auth/microsoft",
|
|
1270
1279
|
SKOLFEDERATION_AUTH: "https://fed.skolfederation.se/prod/ds/?entityID=https://matteappen.se",
|
|
1271
|
-
SKOLON_AUTH: "https://api.matteappen.se/v2/auth/skolon"
|
|
1280
|
+
SKOLON_AUTH: "https://api.matteappen.se/v2/auth/skolon",
|
|
1281
|
+
PROBLEM_CREATOR_URL: "https://teachers.matteappen.se/content/react-native/problems/add"
|
|
1272
1282
|
};
|
|
1273
1283
|
|
|
1274
1284
|
// src/configs/env/mobile/gb/env.gb.prod.ts
|
|
@@ -1283,7 +1293,8 @@ var ENV_MOBILE_GB_PROD = {
|
|
|
1283
1293
|
GOOGLE_AUTH: "https://api.magmamath.com/v2/auth/google",
|
|
1284
1294
|
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
1285
1295
|
SKOLON_AUTH: "https://api.magmamath.com/v2/auth/skolon",
|
|
1286
|
-
WONDE_AUTH: "https://api.magmamath.com/v2/auth/mylogin"
|
|
1296
|
+
WONDE_AUTH: "https://api.magmamath.com/v2/auth/mylogin",
|
|
1297
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1287
1298
|
};
|
|
1288
1299
|
|
|
1289
1300
|
// src/configs/env/mobile/ca/env.ca.prod.ts
|
|
@@ -1299,7 +1310,8 @@ var ENV_MOBILE_CA_PROD = {
|
|
|
1299
1310
|
MICROSOFT_AUTH: "https://api.ca.magmamath.com/v2/auth/microsoft",
|
|
1300
1311
|
CLASS_LINK_AUTH: "https://api.ca.magmamath.com/v2/auth/edlink-classlink",
|
|
1301
1312
|
SCHOOLOGY_AUTH: "https://api.ca.magmamath.com/v2/auth/edlink",
|
|
1302
|
-
CLEVER_AUTH: "https://api.ca.magmamath.com/v2/auth/clever"
|
|
1313
|
+
CLEVER_AUTH: "https://api.ca.magmamath.com/v2/auth/clever",
|
|
1314
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1303
1315
|
};
|
|
1304
1316
|
|
|
1305
1317
|
// src/configs/env/mobile/sct/env.sct.prod.ts
|
|
@@ -1314,7 +1326,8 @@ var ENV_MOBILE_SCT_PROD = {
|
|
|
1314
1326
|
GOOGLE_AUTH: "https://api.magmamath.com/v2/auth/google",
|
|
1315
1327
|
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
1316
1328
|
SKOLON_AUTH: "https://api.magmamath.com/v2/auth/skolon",
|
|
1317
|
-
WONDE_AUTH: "https://api.magmamath.com/v2/auth/mylogin"
|
|
1329
|
+
WONDE_AUTH: "https://api.magmamath.com/v2/auth/mylogin",
|
|
1330
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1318
1331
|
};
|
|
1319
1332
|
|
|
1320
1333
|
// src/configs/env/mobile/de/env.de.prod.ts
|
|
@@ -1327,7 +1340,8 @@ var ENV_MOBILE_DE_PROD = {
|
|
|
1327
1340
|
SOCKET_URL: "https://sockets.magmamath.com",
|
|
1328
1341
|
LOGGLY_TAG: "MOBILE_PROD,MOBILE_PROD_DE",
|
|
1329
1342
|
GOOGLE_AUTH: "https://api.magmamath.com/v2/auth/google",
|
|
1330
|
-
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft"
|
|
1343
|
+
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
1344
|
+
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
1331
1345
|
};
|
|
1332
1346
|
|
|
1333
1347
|
// src/configs/env/env.preset.ts
|