@magmamath/frontend-config 1.2.1-rc.0 → 1.2.3-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/common.constants-B88CwNGl.d.mts +82 -0
- package/dist/common.constants-B88CwNGl.d.ts +82 -0
- package/dist/index.d.mts +36 -83
- package/dist/index.d.ts +36 -83
- package/dist/index.js +580 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +580 -20
- package/dist/index.mjs.map +1 -1
- package/dist/translation/index.d.mts +48 -0
- package/dist/translation/index.d.ts +48 -0
- package/dist/translation/index.js +118 -0
- package/dist/translation/index.js.map +1 -0
- package/dist/translation/index.mjs +111 -0
- package/dist/translation/index.mjs.map +1 -0
- package/dist/translation/translation.constants.d.mts +13 -0
- package/dist/translation/translation.constants.d.ts +13 -0
- package/dist/translation/translation.constants.js +19 -0
- package/dist/translation/translation.constants.js.map +1 -0
- package/dist/translation/translation.constants.mjs +17 -0
- package/dist/translation/translation.constants.mjs.map +1 -0
- package/package.json +40 -2
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare enum Platform {
|
|
2
|
+
STUDENTS_WEB = "STUDENTS",
|
|
3
|
+
TEACHERS_WEB = "TEACHERS",
|
|
4
|
+
DISTRICT_DASHBOARD = "DISTRICT",
|
|
5
|
+
AUTH_WEB = "AUTH_WEB",
|
|
6
|
+
WEB_ADMIN = "WEB_ADMIN",
|
|
7
|
+
MOBILE = "MOBILE"
|
|
8
|
+
}
|
|
9
|
+
declare enum Environment {
|
|
10
|
+
MARS = "MARS",
|
|
11
|
+
VENUS = "VENUS",
|
|
12
|
+
PROD = "PROD"
|
|
13
|
+
}
|
|
14
|
+
declare enum PlatformBuildTarget {
|
|
15
|
+
PLUTO = "pluto",
|
|
16
|
+
MARS = "mars",
|
|
17
|
+
VENUS = "pre-release",
|
|
18
|
+
PROD = "production"
|
|
19
|
+
}
|
|
20
|
+
declare enum Locale {
|
|
21
|
+
US = "en-SE",
|
|
22
|
+
SE = "sv-SE",
|
|
23
|
+
GB = "en-GB",
|
|
24
|
+
CA = "en-CA",
|
|
25
|
+
SCT = "en-SCT",
|
|
26
|
+
DE = "de-DE",
|
|
27
|
+
PL = "pl-PL"
|
|
28
|
+
}
|
|
29
|
+
declare enum Source {
|
|
30
|
+
MATTEAPPEN = 0,
|
|
31
|
+
SKOLON = 1,
|
|
32
|
+
SKOLFEDERATION = 2,
|
|
33
|
+
GOOGLE = 3,
|
|
34
|
+
MICROSOFT = 4,
|
|
35
|
+
CLEVER = 5,
|
|
36
|
+
APPLE = 6,
|
|
37
|
+
MATHSYNC = 7,
|
|
38
|
+
CLASSLINK = 8,
|
|
39
|
+
EDUCLOUD = 9,
|
|
40
|
+
EGIL = 10,
|
|
41
|
+
WONDE = 12,
|
|
42
|
+
SCHOOLOGY = 13,
|
|
43
|
+
SEEMIS = 14,
|
|
44
|
+
IMPORT = 15,
|
|
45
|
+
CANVAS = 16
|
|
46
|
+
}
|
|
47
|
+
declare enum LoginSource {
|
|
48
|
+
MAGMA = 0,
|
|
49
|
+
CLEVER = 1,
|
|
50
|
+
CLASS_LINK = 2,
|
|
51
|
+
SKOLON = 3,
|
|
52
|
+
SKOLFEDERATION = 4,
|
|
53
|
+
GOOGLE = 5,
|
|
54
|
+
MICROSOFT = 6,
|
|
55
|
+
APPLE = 7,
|
|
56
|
+
SCHOOLOGY = 8,
|
|
57
|
+
MY_LOGIN = 9
|
|
58
|
+
}
|
|
59
|
+
declare enum SSO {
|
|
60
|
+
APPLE = "APPLE",
|
|
61
|
+
GOOGLE = "GOOGLE",
|
|
62
|
+
MICROSOFT = "MICROSOFT",
|
|
63
|
+
CLEVER = "CLEVER",
|
|
64
|
+
SCHOOLOGY = "SCHOOLOGY",
|
|
65
|
+
CLASS_LINK = "CLASS_LINK",
|
|
66
|
+
SKOLFEDERATION = "SKOLFEDERATION",
|
|
67
|
+
SKOLON = "SKOLON",
|
|
68
|
+
WONDE = "WONDE",
|
|
69
|
+
CANVAS = "CANVAS",
|
|
70
|
+
QR_CODE = "QR_CODE"
|
|
71
|
+
}
|
|
72
|
+
declare enum ApiRegion {
|
|
73
|
+
MAIN = "MAIN",
|
|
74
|
+
CANADA = "CANADA"
|
|
75
|
+
}
|
|
76
|
+
declare enum QRCodeSize {
|
|
77
|
+
DEFAULT = "default",
|
|
78
|
+
MEDIUM = "medium",
|
|
79
|
+
LARGE = "large"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { ApiRegion as A, Environment as E, LoginSource as L, Platform as P, QRCodeSize as Q, SSO as S, Locale as a, PlatformBuildTarget as b, Source as c };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
declare enum Platform {
|
|
2
|
+
STUDENTS_WEB = "STUDENTS",
|
|
3
|
+
TEACHERS_WEB = "TEACHERS",
|
|
4
|
+
DISTRICT_DASHBOARD = "DISTRICT",
|
|
5
|
+
AUTH_WEB = "AUTH_WEB",
|
|
6
|
+
WEB_ADMIN = "WEB_ADMIN",
|
|
7
|
+
MOBILE = "MOBILE"
|
|
8
|
+
}
|
|
9
|
+
declare enum Environment {
|
|
10
|
+
MARS = "MARS",
|
|
11
|
+
VENUS = "VENUS",
|
|
12
|
+
PROD = "PROD"
|
|
13
|
+
}
|
|
14
|
+
declare enum PlatformBuildTarget {
|
|
15
|
+
PLUTO = "pluto",
|
|
16
|
+
MARS = "mars",
|
|
17
|
+
VENUS = "pre-release",
|
|
18
|
+
PROD = "production"
|
|
19
|
+
}
|
|
20
|
+
declare enum Locale {
|
|
21
|
+
US = "en-SE",
|
|
22
|
+
SE = "sv-SE",
|
|
23
|
+
GB = "en-GB",
|
|
24
|
+
CA = "en-CA",
|
|
25
|
+
SCT = "en-SCT",
|
|
26
|
+
DE = "de-DE",
|
|
27
|
+
PL = "pl-PL"
|
|
28
|
+
}
|
|
29
|
+
declare enum Source {
|
|
30
|
+
MATTEAPPEN = 0,
|
|
31
|
+
SKOLON = 1,
|
|
32
|
+
SKOLFEDERATION = 2,
|
|
33
|
+
GOOGLE = 3,
|
|
34
|
+
MICROSOFT = 4,
|
|
35
|
+
CLEVER = 5,
|
|
36
|
+
APPLE = 6,
|
|
37
|
+
MATHSYNC = 7,
|
|
38
|
+
CLASSLINK = 8,
|
|
39
|
+
EDUCLOUD = 9,
|
|
40
|
+
EGIL = 10,
|
|
41
|
+
WONDE = 12,
|
|
42
|
+
SCHOOLOGY = 13,
|
|
43
|
+
SEEMIS = 14,
|
|
44
|
+
IMPORT = 15,
|
|
45
|
+
CANVAS = 16
|
|
46
|
+
}
|
|
47
|
+
declare enum LoginSource {
|
|
48
|
+
MAGMA = 0,
|
|
49
|
+
CLEVER = 1,
|
|
50
|
+
CLASS_LINK = 2,
|
|
51
|
+
SKOLON = 3,
|
|
52
|
+
SKOLFEDERATION = 4,
|
|
53
|
+
GOOGLE = 5,
|
|
54
|
+
MICROSOFT = 6,
|
|
55
|
+
APPLE = 7,
|
|
56
|
+
SCHOOLOGY = 8,
|
|
57
|
+
MY_LOGIN = 9
|
|
58
|
+
}
|
|
59
|
+
declare enum SSO {
|
|
60
|
+
APPLE = "APPLE",
|
|
61
|
+
GOOGLE = "GOOGLE",
|
|
62
|
+
MICROSOFT = "MICROSOFT",
|
|
63
|
+
CLEVER = "CLEVER",
|
|
64
|
+
SCHOOLOGY = "SCHOOLOGY",
|
|
65
|
+
CLASS_LINK = "CLASS_LINK",
|
|
66
|
+
SKOLFEDERATION = "SKOLFEDERATION",
|
|
67
|
+
SKOLON = "SKOLON",
|
|
68
|
+
WONDE = "WONDE",
|
|
69
|
+
CANVAS = "CANVAS",
|
|
70
|
+
QR_CODE = "QR_CODE"
|
|
71
|
+
}
|
|
72
|
+
declare enum ApiRegion {
|
|
73
|
+
MAIN = "MAIN",
|
|
74
|
+
CANADA = "CANADA"
|
|
75
|
+
}
|
|
76
|
+
declare enum QRCodeSize {
|
|
77
|
+
DEFAULT = "default",
|
|
78
|
+
MEDIUM = "medium",
|
|
79
|
+
LARGE = "large"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { ApiRegion as A, Environment as E, LoginSource as L, Platform as P, QRCodeSize as Q, SSO as S, Locale as a, PlatformBuildTarget as b, Source as c };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { S as SSO, L as LoginSource, a as Locale, E as Environment, P as Platform, b as PlatformBuildTarget, Q as QRCodeSize, A as ApiRegion } from './common.constants-B88CwNGl.mjs';
|
|
2
|
+
export { c as Source } from './common.constants-B88CwNGl.mjs';
|
|
1
3
|
import { ComponentType } from 'react';
|
|
2
4
|
import * as effector from 'effector';
|
|
3
5
|
|
|
@@ -29,94 +31,17 @@ declare const DateLocale: {
|
|
|
29
31
|
readonly 'en-SCT': "en";
|
|
30
32
|
readonly DE: "de";
|
|
31
33
|
readonly 'de-DE': "de";
|
|
34
|
+
readonly PL: "pl";
|
|
35
|
+
readonly 'pl-PL': "pl";
|
|
32
36
|
};
|
|
33
37
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
34
38
|
declare const MomentDateLocale: {
|
|
35
39
|
GB: string;
|
|
36
40
|
SE: string;
|
|
37
41
|
DE: string;
|
|
42
|
+
PL: string;
|
|
38
43
|
};
|
|
39
44
|
|
|
40
|
-
declare enum Platform {
|
|
41
|
-
STUDENTS_WEB = "STUDENTS",
|
|
42
|
-
TEACHERS_WEB = "TEACHERS",
|
|
43
|
-
DISTRICT_DASHBOARD = "DISTRICT",
|
|
44
|
-
AUTH_WEB = "AUTH_WEB",
|
|
45
|
-
WEB_ADMIN = "WEB_ADMIN",
|
|
46
|
-
MOBILE = "MOBILE"
|
|
47
|
-
}
|
|
48
|
-
declare enum Environment {
|
|
49
|
-
MARS = "MARS",
|
|
50
|
-
VENUS = "VENUS",
|
|
51
|
-
PROD = "PROD"
|
|
52
|
-
}
|
|
53
|
-
declare enum PlatformBuildTarget {
|
|
54
|
-
PLUTO = "pluto",
|
|
55
|
-
MARS = "mars",
|
|
56
|
-
VENUS = "pre-release",
|
|
57
|
-
PROD = "production"
|
|
58
|
-
}
|
|
59
|
-
declare enum Locale {
|
|
60
|
-
US = "en-SE",
|
|
61
|
-
SE = "sv-SE",
|
|
62
|
-
GB = "en-GB",
|
|
63
|
-
CA = "en-CA",
|
|
64
|
-
SCT = "en-SCT",
|
|
65
|
-
DE = "de-DE"
|
|
66
|
-
}
|
|
67
|
-
declare enum Source {
|
|
68
|
-
MATTEAPPEN = 0,
|
|
69
|
-
SKOLON = 1,
|
|
70
|
-
SKOLFEDERATION = 2,
|
|
71
|
-
GOOGLE = 3,
|
|
72
|
-
MICROSOFT = 4,
|
|
73
|
-
CLEVER = 5,
|
|
74
|
-
APPLE = 6,
|
|
75
|
-
MATHSYNC = 7,
|
|
76
|
-
CLASSLINK = 8,
|
|
77
|
-
EDUCLOUD = 9,
|
|
78
|
-
EGIL = 10,
|
|
79
|
-
WONDE = 12,
|
|
80
|
-
SCHOOLOGY = 13,
|
|
81
|
-
SEEMIS = 14,
|
|
82
|
-
IMPORT = 15,
|
|
83
|
-
CANVAS = 16
|
|
84
|
-
}
|
|
85
|
-
declare enum LoginSource {
|
|
86
|
-
MAGMA = 0,
|
|
87
|
-
CLEVER = 1,
|
|
88
|
-
CLASS_LINK = 2,
|
|
89
|
-
SKOLON = 3,
|
|
90
|
-
SKOLFEDERATION = 4,
|
|
91
|
-
GOOGLE = 5,
|
|
92
|
-
MICROSOFT = 6,
|
|
93
|
-
APPLE = 7,
|
|
94
|
-
SCHOOLOGY = 8,
|
|
95
|
-
MY_LOGIN = 9
|
|
96
|
-
}
|
|
97
|
-
declare enum SSO {
|
|
98
|
-
APPLE = "APPLE",
|
|
99
|
-
GOOGLE = "GOOGLE",
|
|
100
|
-
MICROSOFT = "MICROSOFT",
|
|
101
|
-
CLEVER = "CLEVER",
|
|
102
|
-
SCHOOLOGY = "SCHOOLOGY",
|
|
103
|
-
CLASS_LINK = "CLASS_LINK",
|
|
104
|
-
SKOLFEDERATION = "SKOLFEDERATION",
|
|
105
|
-
SKOLON = "SKOLON",
|
|
106
|
-
WONDE = "WONDE",
|
|
107
|
-
CANVAS = "CANVAS",
|
|
108
|
-
QR_CODE = "QR_CODE"
|
|
109
|
-
}
|
|
110
|
-
declare enum ApiRegion {
|
|
111
|
-
MAIN = "MAIN",
|
|
112
|
-
CANADA = "CANADA"
|
|
113
|
-
}
|
|
114
|
-
declare enum QRCodeSize {
|
|
115
|
-
DEFAULT = "default",
|
|
116
|
-
MEDIUM = "medium",
|
|
117
|
-
LARGE = "large"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
45
|
declare enum MatrixMode {
|
|
121
46
|
SKILL = "SKILL",
|
|
122
47
|
STANDARD = "STANDARD"
|
|
@@ -335,7 +260,8 @@ declare enum WeekStart {
|
|
|
335
260
|
declare enum CalendarLocale {
|
|
336
261
|
EN = "en",
|
|
337
262
|
SE = "sv",
|
|
338
|
-
DE = "de"
|
|
263
|
+
DE = "de",
|
|
264
|
+
PL = "pl"
|
|
339
265
|
}
|
|
340
266
|
type CalendarConfig = {
|
|
341
267
|
locale: CalendarLocale;
|
|
@@ -349,6 +275,7 @@ type CalendarConfig = {
|
|
|
349
275
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
350
276
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
351
277
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
+
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
352
279
|
|
|
353
280
|
type GradeData = {
|
|
354
281
|
name: string;
|
|
@@ -379,6 +306,7 @@ type RegionSpecificVars = {
|
|
|
379
306
|
API_URL: string;
|
|
380
307
|
AUTH_WEB_URL: string;
|
|
381
308
|
CDN_HOST: string;
|
|
309
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
382
310
|
DISTRICT_WEB_URL: string;
|
|
383
311
|
LOGGLY_TAG: string;
|
|
384
312
|
MAGMAMATH_URL: string;
|
|
@@ -388,6 +316,7 @@ type RegionSpecificVars = {
|
|
|
388
316
|
};
|
|
389
317
|
|
|
390
318
|
type StudentsWebCommon = {
|
|
319
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
391
320
|
GOOGLE_API_KEY: string;
|
|
392
321
|
DESMOS_API_KEY: string;
|
|
393
322
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -397,6 +326,8 @@ type StudentsWebCommon = {
|
|
|
397
326
|
MYSCRIPT_SOCKET_KEY: string;
|
|
398
327
|
MYSCRIPT_REST_APP_KEY: string;
|
|
399
328
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
329
|
+
TOLGEE_API_URL?: string;
|
|
330
|
+
TOLGEE_API_KEY?: string;
|
|
400
331
|
};
|
|
401
332
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
402
333
|
type StudentsWebVarsPreset = {
|
|
@@ -406,6 +337,7 @@ type StudentsWebVarsPreset = {
|
|
|
406
337
|
};
|
|
407
338
|
|
|
408
339
|
type TeachersWebCommon = {
|
|
340
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
409
341
|
MYSCRIPT_HOST: string;
|
|
410
342
|
MYSCRIPT_REST_APP_KEY: string;
|
|
411
343
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -413,6 +345,8 @@ type TeachersWebCommon = {
|
|
|
413
345
|
INTERCOM_APP_ID: string;
|
|
414
346
|
CLARITY_PROJECT_ID: string;
|
|
415
347
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
348
|
+
TOLGEE_API_URL?: string;
|
|
349
|
+
TOLGEE_API_KEY?: string;
|
|
416
350
|
};
|
|
417
351
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
418
352
|
type TeachersWebVarsPreset = {
|
|
@@ -422,9 +356,12 @@ type TeachersWebVarsPreset = {
|
|
|
422
356
|
};
|
|
423
357
|
|
|
424
358
|
type DistrictCommon = {
|
|
359
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
425
360
|
INTERCOM_APP_ID: string;
|
|
426
361
|
CLARITY_PROJECT_ID: string;
|
|
427
362
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
363
|
+
TOLGEE_API_URL?: string;
|
|
364
|
+
TOLGEE_API_KEY?: string;
|
|
428
365
|
};
|
|
429
366
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
430
367
|
type DistrictWebVarsPreset = {
|
|
@@ -456,7 +393,11 @@ type SSO_DE = {
|
|
|
456
393
|
GOOGLE_AUTH: string;
|
|
457
394
|
MICROSOFT_AUTH: string;
|
|
458
395
|
};
|
|
459
|
-
type
|
|
396
|
+
type SSO_PL = {
|
|
397
|
+
GOOGLE_AUTH: string;
|
|
398
|
+
MICROSOFT_AUTH: string;
|
|
399
|
+
};
|
|
400
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
460
401
|
type SSOByLocale = {
|
|
461
402
|
[Locale.US]: SSO_US;
|
|
462
403
|
[Locale.CA]: SSO_US;
|
|
@@ -464,6 +405,7 @@ type SSOByLocale = {
|
|
|
464
405
|
[Locale.SCT]: SSO_UK;
|
|
465
406
|
[Locale.SE]: SSO_SE;
|
|
466
407
|
[Locale.DE]: SSO_DE;
|
|
408
|
+
[Locale.PL]: SSO_PL;
|
|
467
409
|
};
|
|
468
410
|
|
|
469
411
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -475,6 +417,8 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
|
|
|
475
417
|
TOS_URL: string;
|
|
476
418
|
CLARITY_PROJECT_ID: string;
|
|
477
419
|
INTERCOM_APP_ID: string;
|
|
420
|
+
TOLGEE_API_URL?: string;
|
|
421
|
+
TOLGEE_API_KEY?: string;
|
|
478
422
|
};
|
|
479
423
|
type AuthWebVarsPreset = {
|
|
480
424
|
[Locale.CA]: {
|
|
@@ -495,9 +439,15 @@ type AuthWebVarsPreset = {
|
|
|
495
439
|
[Locale.US]: {
|
|
496
440
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
497
441
|
};
|
|
442
|
+
[Locale.PL]: {
|
|
443
|
+
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
444
|
+
};
|
|
498
445
|
};
|
|
499
446
|
|
|
500
447
|
type MobileCommon = {
|
|
448
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
449
|
+
TOLGEE_API_URL?: string;
|
|
450
|
+
TOLGEE_API_KEY?: string;
|
|
501
451
|
DESMOS_API_KEY: string;
|
|
502
452
|
USER_AGENT: string;
|
|
503
453
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -542,6 +492,9 @@ type MobileVarsPreset = {
|
|
|
542
492
|
[Locale.US]: {
|
|
543
493
|
[key in Environment]: MobileVars<SSO_US>;
|
|
544
494
|
};
|
|
495
|
+
[Locale.PL]: {
|
|
496
|
+
[key in Environment]: MobileVars<SSO_PL>;
|
|
497
|
+
};
|
|
545
498
|
};
|
|
546
499
|
|
|
547
500
|
type RegionSpecificWebAdminVars = {
|
|
@@ -856,4 +809,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
856
809
|
};
|
|
857
810
|
}
|
|
858
811
|
|
|
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,
|
|
812
|
+
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, PL_CALENDAR_CONFIG, 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_PL, type SSO_SE, type SSO_UK, type SSO_US, 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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { S as SSO, L as LoginSource, a as Locale, E as Environment, P as Platform, b as PlatformBuildTarget, Q as QRCodeSize, A as ApiRegion } from './common.constants-B88CwNGl.js';
|
|
2
|
+
export { c as Source } from './common.constants-B88CwNGl.js';
|
|
1
3
|
import { ComponentType } from 'react';
|
|
2
4
|
import * as effector from 'effector';
|
|
3
5
|
|
|
@@ -29,94 +31,17 @@ declare const DateLocale: {
|
|
|
29
31
|
readonly 'en-SCT': "en";
|
|
30
32
|
readonly DE: "de";
|
|
31
33
|
readonly 'de-DE': "de";
|
|
34
|
+
readonly PL: "pl";
|
|
35
|
+
readonly 'pl-PL': "pl";
|
|
32
36
|
};
|
|
33
37
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
34
38
|
declare const MomentDateLocale: {
|
|
35
39
|
GB: string;
|
|
36
40
|
SE: string;
|
|
37
41
|
DE: string;
|
|
42
|
+
PL: string;
|
|
38
43
|
};
|
|
39
44
|
|
|
40
|
-
declare enum Platform {
|
|
41
|
-
STUDENTS_WEB = "STUDENTS",
|
|
42
|
-
TEACHERS_WEB = "TEACHERS",
|
|
43
|
-
DISTRICT_DASHBOARD = "DISTRICT",
|
|
44
|
-
AUTH_WEB = "AUTH_WEB",
|
|
45
|
-
WEB_ADMIN = "WEB_ADMIN",
|
|
46
|
-
MOBILE = "MOBILE"
|
|
47
|
-
}
|
|
48
|
-
declare enum Environment {
|
|
49
|
-
MARS = "MARS",
|
|
50
|
-
VENUS = "VENUS",
|
|
51
|
-
PROD = "PROD"
|
|
52
|
-
}
|
|
53
|
-
declare enum PlatformBuildTarget {
|
|
54
|
-
PLUTO = "pluto",
|
|
55
|
-
MARS = "mars",
|
|
56
|
-
VENUS = "pre-release",
|
|
57
|
-
PROD = "production"
|
|
58
|
-
}
|
|
59
|
-
declare enum Locale {
|
|
60
|
-
US = "en-SE",
|
|
61
|
-
SE = "sv-SE",
|
|
62
|
-
GB = "en-GB",
|
|
63
|
-
CA = "en-CA",
|
|
64
|
-
SCT = "en-SCT",
|
|
65
|
-
DE = "de-DE"
|
|
66
|
-
}
|
|
67
|
-
declare enum Source {
|
|
68
|
-
MATTEAPPEN = 0,
|
|
69
|
-
SKOLON = 1,
|
|
70
|
-
SKOLFEDERATION = 2,
|
|
71
|
-
GOOGLE = 3,
|
|
72
|
-
MICROSOFT = 4,
|
|
73
|
-
CLEVER = 5,
|
|
74
|
-
APPLE = 6,
|
|
75
|
-
MATHSYNC = 7,
|
|
76
|
-
CLASSLINK = 8,
|
|
77
|
-
EDUCLOUD = 9,
|
|
78
|
-
EGIL = 10,
|
|
79
|
-
WONDE = 12,
|
|
80
|
-
SCHOOLOGY = 13,
|
|
81
|
-
SEEMIS = 14,
|
|
82
|
-
IMPORT = 15,
|
|
83
|
-
CANVAS = 16
|
|
84
|
-
}
|
|
85
|
-
declare enum LoginSource {
|
|
86
|
-
MAGMA = 0,
|
|
87
|
-
CLEVER = 1,
|
|
88
|
-
CLASS_LINK = 2,
|
|
89
|
-
SKOLON = 3,
|
|
90
|
-
SKOLFEDERATION = 4,
|
|
91
|
-
GOOGLE = 5,
|
|
92
|
-
MICROSOFT = 6,
|
|
93
|
-
APPLE = 7,
|
|
94
|
-
SCHOOLOGY = 8,
|
|
95
|
-
MY_LOGIN = 9
|
|
96
|
-
}
|
|
97
|
-
declare enum SSO {
|
|
98
|
-
APPLE = "APPLE",
|
|
99
|
-
GOOGLE = "GOOGLE",
|
|
100
|
-
MICROSOFT = "MICROSOFT",
|
|
101
|
-
CLEVER = "CLEVER",
|
|
102
|
-
SCHOOLOGY = "SCHOOLOGY",
|
|
103
|
-
CLASS_LINK = "CLASS_LINK",
|
|
104
|
-
SKOLFEDERATION = "SKOLFEDERATION",
|
|
105
|
-
SKOLON = "SKOLON",
|
|
106
|
-
WONDE = "WONDE",
|
|
107
|
-
CANVAS = "CANVAS",
|
|
108
|
-
QR_CODE = "QR_CODE"
|
|
109
|
-
}
|
|
110
|
-
declare enum ApiRegion {
|
|
111
|
-
MAIN = "MAIN",
|
|
112
|
-
CANADA = "CANADA"
|
|
113
|
-
}
|
|
114
|
-
declare enum QRCodeSize {
|
|
115
|
-
DEFAULT = "default",
|
|
116
|
-
MEDIUM = "medium",
|
|
117
|
-
LARGE = "large"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
45
|
declare enum MatrixMode {
|
|
121
46
|
SKILL = "SKILL",
|
|
122
47
|
STANDARD = "STANDARD"
|
|
@@ -335,7 +260,8 @@ declare enum WeekStart {
|
|
|
335
260
|
declare enum CalendarLocale {
|
|
336
261
|
EN = "en",
|
|
337
262
|
SE = "sv",
|
|
338
|
-
DE = "de"
|
|
263
|
+
DE = "de",
|
|
264
|
+
PL = "pl"
|
|
339
265
|
}
|
|
340
266
|
type CalendarConfig = {
|
|
341
267
|
locale: CalendarLocale;
|
|
@@ -349,6 +275,7 @@ type CalendarConfig = {
|
|
|
349
275
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
350
276
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
351
277
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
+
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
352
279
|
|
|
353
280
|
type GradeData = {
|
|
354
281
|
name: string;
|
|
@@ -379,6 +306,7 @@ type RegionSpecificVars = {
|
|
|
379
306
|
API_URL: string;
|
|
380
307
|
AUTH_WEB_URL: string;
|
|
381
308
|
CDN_HOST: string;
|
|
309
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
382
310
|
DISTRICT_WEB_URL: string;
|
|
383
311
|
LOGGLY_TAG: string;
|
|
384
312
|
MAGMAMATH_URL: string;
|
|
@@ -388,6 +316,7 @@ type RegionSpecificVars = {
|
|
|
388
316
|
};
|
|
389
317
|
|
|
390
318
|
type StudentsWebCommon = {
|
|
319
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
391
320
|
GOOGLE_API_KEY: string;
|
|
392
321
|
DESMOS_API_KEY: string;
|
|
393
322
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -397,6 +326,8 @@ type StudentsWebCommon = {
|
|
|
397
326
|
MYSCRIPT_SOCKET_KEY: string;
|
|
398
327
|
MYSCRIPT_REST_APP_KEY: string;
|
|
399
328
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
329
|
+
TOLGEE_API_URL?: string;
|
|
330
|
+
TOLGEE_API_KEY?: string;
|
|
400
331
|
};
|
|
401
332
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
402
333
|
type StudentsWebVarsPreset = {
|
|
@@ -406,6 +337,7 @@ type StudentsWebVarsPreset = {
|
|
|
406
337
|
};
|
|
407
338
|
|
|
408
339
|
type TeachersWebCommon = {
|
|
340
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
409
341
|
MYSCRIPT_HOST: string;
|
|
410
342
|
MYSCRIPT_REST_APP_KEY: string;
|
|
411
343
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -413,6 +345,8 @@ type TeachersWebCommon = {
|
|
|
413
345
|
INTERCOM_APP_ID: string;
|
|
414
346
|
CLARITY_PROJECT_ID: string;
|
|
415
347
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
348
|
+
TOLGEE_API_URL?: string;
|
|
349
|
+
TOLGEE_API_KEY?: string;
|
|
416
350
|
};
|
|
417
351
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
418
352
|
type TeachersWebVarsPreset = {
|
|
@@ -422,9 +356,12 @@ type TeachersWebVarsPreset = {
|
|
|
422
356
|
};
|
|
423
357
|
|
|
424
358
|
type DistrictCommon = {
|
|
359
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
425
360
|
INTERCOM_APP_ID: string;
|
|
426
361
|
CLARITY_PROJECT_ID: string;
|
|
427
362
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
363
|
+
TOLGEE_API_URL?: string;
|
|
364
|
+
TOLGEE_API_KEY?: string;
|
|
428
365
|
};
|
|
429
366
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
430
367
|
type DistrictWebVarsPreset = {
|
|
@@ -456,7 +393,11 @@ type SSO_DE = {
|
|
|
456
393
|
GOOGLE_AUTH: string;
|
|
457
394
|
MICROSOFT_AUTH: string;
|
|
458
395
|
};
|
|
459
|
-
type
|
|
396
|
+
type SSO_PL = {
|
|
397
|
+
GOOGLE_AUTH: string;
|
|
398
|
+
MICROSOFT_AUTH: string;
|
|
399
|
+
};
|
|
400
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
460
401
|
type SSOByLocale = {
|
|
461
402
|
[Locale.US]: SSO_US;
|
|
462
403
|
[Locale.CA]: SSO_US;
|
|
@@ -464,6 +405,7 @@ type SSOByLocale = {
|
|
|
464
405
|
[Locale.SCT]: SSO_UK;
|
|
465
406
|
[Locale.SE]: SSO_SE;
|
|
466
407
|
[Locale.DE]: SSO_DE;
|
|
408
|
+
[Locale.PL]: SSO_PL;
|
|
467
409
|
};
|
|
468
410
|
|
|
469
411
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -475,6 +417,8 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
|
|
|
475
417
|
TOS_URL: string;
|
|
476
418
|
CLARITY_PROJECT_ID: string;
|
|
477
419
|
INTERCOM_APP_ID: string;
|
|
420
|
+
TOLGEE_API_URL?: string;
|
|
421
|
+
TOLGEE_API_KEY?: string;
|
|
478
422
|
};
|
|
479
423
|
type AuthWebVarsPreset = {
|
|
480
424
|
[Locale.CA]: {
|
|
@@ -495,9 +439,15 @@ type AuthWebVarsPreset = {
|
|
|
495
439
|
[Locale.US]: {
|
|
496
440
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
497
441
|
};
|
|
442
|
+
[Locale.PL]: {
|
|
443
|
+
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
444
|
+
};
|
|
498
445
|
};
|
|
499
446
|
|
|
500
447
|
type MobileCommon = {
|
|
448
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
449
|
+
TOLGEE_API_URL?: string;
|
|
450
|
+
TOLGEE_API_KEY?: string;
|
|
501
451
|
DESMOS_API_KEY: string;
|
|
502
452
|
USER_AGENT: string;
|
|
503
453
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -542,6 +492,9 @@ type MobileVarsPreset = {
|
|
|
542
492
|
[Locale.US]: {
|
|
543
493
|
[key in Environment]: MobileVars<SSO_US>;
|
|
544
494
|
};
|
|
495
|
+
[Locale.PL]: {
|
|
496
|
+
[key in Environment]: MobileVars<SSO_PL>;
|
|
497
|
+
};
|
|
545
498
|
};
|
|
546
499
|
|
|
547
500
|
type RegionSpecificWebAdminVars = {
|
|
@@ -856,4 +809,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
856
809
|
};
|
|
857
810
|
}
|
|
858
811
|
|
|
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,
|
|
812
|
+
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, PL_CALENDAR_CONFIG, 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_PL, type SSO_SE, type SSO_UK, type SSO_US, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
|