@magmamath/frontend-config 1.2.0-rc.0 → 1.2.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-ClvjFWRr.d.mts +81 -0
- package/dist/common.constants-ClvjFWRr.d.ts +81 -0
- package/dist/index.d.mts +32 -104
- package/dist/index.d.ts +32 -104
- package/dist/index.js +146 -238
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +146 -239
- 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,81 @@
|
|
|
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
|
+
}
|
|
28
|
+
declare enum Source {
|
|
29
|
+
MATTEAPPEN = 0,
|
|
30
|
+
SKOLON = 1,
|
|
31
|
+
SKOLFEDERATION = 2,
|
|
32
|
+
GOOGLE = 3,
|
|
33
|
+
MICROSOFT = 4,
|
|
34
|
+
CLEVER = 5,
|
|
35
|
+
APPLE = 6,
|
|
36
|
+
MATHSYNC = 7,
|
|
37
|
+
CLASSLINK = 8,
|
|
38
|
+
EDUCLOUD = 9,
|
|
39
|
+
EGIL = 10,
|
|
40
|
+
WONDE = 12,
|
|
41
|
+
SCHOOLOGY = 13,
|
|
42
|
+
SEEMIS = 14,
|
|
43
|
+
IMPORT = 15,
|
|
44
|
+
CANVAS = 16
|
|
45
|
+
}
|
|
46
|
+
declare enum LoginSource {
|
|
47
|
+
MAGMA = 0,
|
|
48
|
+
CLEVER = 1,
|
|
49
|
+
CLASS_LINK = 2,
|
|
50
|
+
SKOLON = 3,
|
|
51
|
+
SKOLFEDERATION = 4,
|
|
52
|
+
GOOGLE = 5,
|
|
53
|
+
MICROSOFT = 6,
|
|
54
|
+
APPLE = 7,
|
|
55
|
+
SCHOOLOGY = 8,
|
|
56
|
+
MY_LOGIN = 9
|
|
57
|
+
}
|
|
58
|
+
declare enum SSO {
|
|
59
|
+
APPLE = "APPLE",
|
|
60
|
+
GOOGLE = "GOOGLE",
|
|
61
|
+
MICROSOFT = "MICROSOFT",
|
|
62
|
+
CLEVER = "CLEVER",
|
|
63
|
+
SCHOOLOGY = "SCHOOLOGY",
|
|
64
|
+
CLASS_LINK = "CLASS_LINK",
|
|
65
|
+
SKOLFEDERATION = "SKOLFEDERATION",
|
|
66
|
+
SKOLON = "SKOLON",
|
|
67
|
+
WONDE = "WONDE",
|
|
68
|
+
CANVAS = "CANVAS",
|
|
69
|
+
QR_CODE = "QR_CODE"
|
|
70
|
+
}
|
|
71
|
+
declare enum ApiRegion {
|
|
72
|
+
MAIN = "MAIN",
|
|
73
|
+
CANADA = "CANADA"
|
|
74
|
+
}
|
|
75
|
+
declare enum QRCodeSize {
|
|
76
|
+
DEFAULT = "default",
|
|
77
|
+
MEDIUM = "medium",
|
|
78
|
+
LARGE = "large"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
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,81 @@
|
|
|
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
|
+
}
|
|
28
|
+
declare enum Source {
|
|
29
|
+
MATTEAPPEN = 0,
|
|
30
|
+
SKOLON = 1,
|
|
31
|
+
SKOLFEDERATION = 2,
|
|
32
|
+
GOOGLE = 3,
|
|
33
|
+
MICROSOFT = 4,
|
|
34
|
+
CLEVER = 5,
|
|
35
|
+
APPLE = 6,
|
|
36
|
+
MATHSYNC = 7,
|
|
37
|
+
CLASSLINK = 8,
|
|
38
|
+
EDUCLOUD = 9,
|
|
39
|
+
EGIL = 10,
|
|
40
|
+
WONDE = 12,
|
|
41
|
+
SCHOOLOGY = 13,
|
|
42
|
+
SEEMIS = 14,
|
|
43
|
+
IMPORT = 15,
|
|
44
|
+
CANVAS = 16
|
|
45
|
+
}
|
|
46
|
+
declare enum LoginSource {
|
|
47
|
+
MAGMA = 0,
|
|
48
|
+
CLEVER = 1,
|
|
49
|
+
CLASS_LINK = 2,
|
|
50
|
+
SKOLON = 3,
|
|
51
|
+
SKOLFEDERATION = 4,
|
|
52
|
+
GOOGLE = 5,
|
|
53
|
+
MICROSOFT = 6,
|
|
54
|
+
APPLE = 7,
|
|
55
|
+
SCHOOLOGY = 8,
|
|
56
|
+
MY_LOGIN = 9
|
|
57
|
+
}
|
|
58
|
+
declare enum SSO {
|
|
59
|
+
APPLE = "APPLE",
|
|
60
|
+
GOOGLE = "GOOGLE",
|
|
61
|
+
MICROSOFT = "MICROSOFT",
|
|
62
|
+
CLEVER = "CLEVER",
|
|
63
|
+
SCHOOLOGY = "SCHOOLOGY",
|
|
64
|
+
CLASS_LINK = "CLASS_LINK",
|
|
65
|
+
SKOLFEDERATION = "SKOLFEDERATION",
|
|
66
|
+
SKOLON = "SKOLON",
|
|
67
|
+
WONDE = "WONDE",
|
|
68
|
+
CANVAS = "CANVAS",
|
|
69
|
+
QR_CODE = "QR_CODE"
|
|
70
|
+
}
|
|
71
|
+
declare enum ApiRegion {
|
|
72
|
+
MAIN = "MAIN",
|
|
73
|
+
CANADA = "CANADA"
|
|
74
|
+
}
|
|
75
|
+
declare enum QRCodeSize {
|
|
76
|
+
DEFAULT = "default",
|
|
77
|
+
MEDIUM = "medium",
|
|
78
|
+
LARGE = "large"
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
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-ClvjFWRr.mjs';
|
|
2
|
+
export { c as Source } from './common.constants-ClvjFWRr.mjs';
|
|
1
3
|
import { ComponentType } from 'react';
|
|
2
4
|
import * as effector from 'effector';
|
|
3
5
|
|
|
@@ -37,87 +39,6 @@ declare const MomentDateLocale: {
|
|
|
37
39
|
DE: string;
|
|
38
40
|
};
|
|
39
41
|
|
|
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
|
-
PARENT_WEB = "PARENT_WEB"
|
|
48
|
-
}
|
|
49
|
-
declare enum Environment {
|
|
50
|
-
MARS = "MARS",
|
|
51
|
-
VENUS = "VENUS",
|
|
52
|
-
PROD = "PROD"
|
|
53
|
-
}
|
|
54
|
-
declare enum PlatformBuildTarget {
|
|
55
|
-
PLUTO = "pluto",
|
|
56
|
-
MARS = "mars",
|
|
57
|
-
VENUS = "pre-release",
|
|
58
|
-
PROD = "production"
|
|
59
|
-
}
|
|
60
|
-
declare enum Locale {
|
|
61
|
-
US = "en-SE",
|
|
62
|
-
SE = "sv-SE",
|
|
63
|
-
GB = "en-GB",
|
|
64
|
-
CA = "en-CA",
|
|
65
|
-
SCT = "en-SCT",
|
|
66
|
-
DE = "de-DE"
|
|
67
|
-
}
|
|
68
|
-
declare enum Source {
|
|
69
|
-
MATTEAPPEN = 0,
|
|
70
|
-
SKOLON = 1,
|
|
71
|
-
SKOLFEDERATION = 2,
|
|
72
|
-
GOOGLE = 3,
|
|
73
|
-
MICROSOFT = 4,
|
|
74
|
-
CLEVER = 5,
|
|
75
|
-
APPLE = 6,
|
|
76
|
-
MATHSYNC = 7,
|
|
77
|
-
CLASSLINK = 8,
|
|
78
|
-
EDUCLOUD = 9,
|
|
79
|
-
EGIL = 10,
|
|
80
|
-
WONDE = 12,
|
|
81
|
-
SCHOOLOGY = 13,
|
|
82
|
-
SEEMIS = 14,
|
|
83
|
-
IMPORT = 15,
|
|
84
|
-
CANVAS = 16
|
|
85
|
-
}
|
|
86
|
-
declare enum LoginSource {
|
|
87
|
-
MAGMA = 0,
|
|
88
|
-
CLEVER = 1,
|
|
89
|
-
CLASS_LINK = 2,
|
|
90
|
-
SKOLON = 3,
|
|
91
|
-
SKOLFEDERATION = 4,
|
|
92
|
-
GOOGLE = 5,
|
|
93
|
-
MICROSOFT = 6,
|
|
94
|
-
APPLE = 7,
|
|
95
|
-
SCHOOLOGY = 8,
|
|
96
|
-
MY_LOGIN = 9
|
|
97
|
-
}
|
|
98
|
-
declare enum SSO {
|
|
99
|
-
APPLE = "APPLE",
|
|
100
|
-
GOOGLE = "GOOGLE",
|
|
101
|
-
MICROSOFT = "MICROSOFT",
|
|
102
|
-
CLEVER = "CLEVER",
|
|
103
|
-
SCHOOLOGY = "SCHOOLOGY",
|
|
104
|
-
CLASS_LINK = "CLASS_LINK",
|
|
105
|
-
SKOLFEDERATION = "SKOLFEDERATION",
|
|
106
|
-
SKOLON = "SKOLON",
|
|
107
|
-
WONDE = "WONDE",
|
|
108
|
-
CANVAS = "CANVAS",
|
|
109
|
-
QR_CODE = "QR_CODE"
|
|
110
|
-
}
|
|
111
|
-
declare enum ApiRegion {
|
|
112
|
-
MAIN = "MAIN",
|
|
113
|
-
CANADA = "CANADA"
|
|
114
|
-
}
|
|
115
|
-
declare enum QRCodeSize {
|
|
116
|
-
DEFAULT = "default",
|
|
117
|
-
MEDIUM = "medium",
|
|
118
|
-
LARGE = "large"
|
|
119
|
-
}
|
|
120
|
-
|
|
121
42
|
declare enum MatrixMode {
|
|
122
43
|
SKILL = "SKILL",
|
|
123
44
|
STANDARD = "STANDARD"
|
|
@@ -160,10 +81,10 @@ declare enum NumberDecimalSeparator {
|
|
|
160
81
|
COMMA = ","
|
|
161
82
|
}
|
|
162
83
|
declare enum NumberGroupingSeparator {
|
|
163
|
-
SPACE = "
|
|
164
|
-
COMMA = "
|
|
165
|
-
DOT = "
|
|
166
|
-
APOSTROPHE = "
|
|
84
|
+
SPACE = " ",
|
|
85
|
+
COMMA = ",",
|
|
86
|
+
DOT = ".",
|
|
87
|
+
APOSTROPHE = "'"
|
|
167
88
|
}
|
|
168
89
|
|
|
169
90
|
declare enum TTSOverrideSymbol {
|
|
@@ -380,16 +301,17 @@ type RegionSpecificVars = {
|
|
|
380
301
|
API_URL: string;
|
|
381
302
|
AUTH_WEB_URL: string;
|
|
382
303
|
CDN_HOST: string;
|
|
304
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
383
305
|
DISTRICT_WEB_URL: string;
|
|
384
306
|
LOGGLY_TAG: string;
|
|
385
307
|
MAGMAMATH_URL: string;
|
|
386
|
-
PARENT_WEB_URL: string;
|
|
387
308
|
SOCKET_URL: string;
|
|
388
309
|
STUDENTS_WEB_URL: string;
|
|
389
310
|
TEACHERS_WEB_URL: string;
|
|
390
311
|
};
|
|
391
312
|
|
|
392
313
|
type StudentsWebCommon = {
|
|
314
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
393
315
|
GOOGLE_API_KEY: string;
|
|
394
316
|
DESMOS_API_KEY: string;
|
|
395
317
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -399,6 +321,8 @@ type StudentsWebCommon = {
|
|
|
399
321
|
MYSCRIPT_SOCKET_KEY: string;
|
|
400
322
|
MYSCRIPT_REST_APP_KEY: string;
|
|
401
323
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
324
|
+
TOLGEE_API_URL?: string;
|
|
325
|
+
TOLGEE_API_KEY?: string;
|
|
402
326
|
};
|
|
403
327
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
404
328
|
type StudentsWebVarsPreset = {
|
|
@@ -408,6 +332,7 @@ type StudentsWebVarsPreset = {
|
|
|
408
332
|
};
|
|
409
333
|
|
|
410
334
|
type TeachersWebCommon = {
|
|
335
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
411
336
|
MYSCRIPT_HOST: string;
|
|
412
337
|
MYSCRIPT_REST_APP_KEY: string;
|
|
413
338
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -415,6 +340,8 @@ type TeachersWebCommon = {
|
|
|
415
340
|
INTERCOM_APP_ID: string;
|
|
416
341
|
CLARITY_PROJECT_ID: string;
|
|
417
342
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
343
|
+
TOLGEE_API_URL?: string;
|
|
344
|
+
TOLGEE_API_KEY?: string;
|
|
418
345
|
};
|
|
419
346
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
420
347
|
type TeachersWebVarsPreset = {
|
|
@@ -424,9 +351,12 @@ type TeachersWebVarsPreset = {
|
|
|
424
351
|
};
|
|
425
352
|
|
|
426
353
|
type DistrictCommon = {
|
|
354
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
427
355
|
INTERCOM_APP_ID: string;
|
|
428
356
|
CLARITY_PROJECT_ID: string;
|
|
429
357
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
358
|
+
TOLGEE_API_URL?: string;
|
|
359
|
+
TOLGEE_API_KEY?: string;
|
|
430
360
|
};
|
|
431
361
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
432
362
|
type DistrictWebVarsPreset = {
|
|
@@ -477,6 +407,8 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
|
|
|
477
407
|
TOS_URL: string;
|
|
478
408
|
CLARITY_PROJECT_ID: string;
|
|
479
409
|
INTERCOM_APP_ID: string;
|
|
410
|
+
TOLGEE_API_URL?: string;
|
|
411
|
+
TOLGEE_API_KEY?: string;
|
|
480
412
|
};
|
|
481
413
|
type AuthWebVarsPreset = {
|
|
482
414
|
[Locale.CA]: {
|
|
@@ -500,6 +432,9 @@ type AuthWebVarsPreset = {
|
|
|
500
432
|
};
|
|
501
433
|
|
|
502
434
|
type MobileCommon = {
|
|
435
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
436
|
+
TOLGEE_API_URL?: string;
|
|
437
|
+
TOLGEE_API_KEY?: string;
|
|
503
438
|
DESMOS_API_KEY: string;
|
|
504
439
|
USER_AGENT: string;
|
|
505
440
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -564,17 +499,6 @@ type WebAdminVarsPreset = {
|
|
|
564
499
|
};
|
|
565
500
|
};
|
|
566
501
|
|
|
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
502
|
type EnvPreset = Readonly<{
|
|
579
503
|
[Platform.STUDENTS_WEB]: StudentsWebVarsPreset;
|
|
580
504
|
[Platform.TEACHERS_WEB]: TeachersWebVarsPreset;
|
|
@@ -582,7 +506,6 @@ type EnvPreset = Readonly<{
|
|
|
582
506
|
[Platform.AUTH_WEB]: AuthWebVarsPreset;
|
|
583
507
|
[Platform.WEB_ADMIN]: WebAdminVarsPreset;
|
|
584
508
|
[Platform.MOBILE]: MobileVarsPreset;
|
|
585
|
-
[Platform.PARENT_WEB]: ParentWebVarsPreset;
|
|
586
509
|
}>;
|
|
587
510
|
type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
|
|
588
511
|
|
|
@@ -604,6 +527,15 @@ declare enum KeyboardTimeVariant {
|
|
|
604
527
|
H24 = "H24"
|
|
605
528
|
}
|
|
606
529
|
|
|
530
|
+
declare enum DrawboardCoinVariant {
|
|
531
|
+
DEFAULT = "default",
|
|
532
|
+
US = "us",
|
|
533
|
+
EURO = "euro",
|
|
534
|
+
CA = "ca",
|
|
535
|
+
UK = "uk",
|
|
536
|
+
SE = "se"
|
|
537
|
+
}
|
|
538
|
+
|
|
607
539
|
type KeyboardConfig = {
|
|
608
540
|
preset: KeyboardPreset;
|
|
609
541
|
currencyVariant: KeyboardCurrencyVariant;
|
|
@@ -622,6 +554,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
622
554
|
keyboard: KeyboardConfig;
|
|
623
555
|
drawboard: {
|
|
624
556
|
basicManipulativesMaxGrade: number;
|
|
557
|
+
coinVariant: DrawboardCoinVariant;
|
|
625
558
|
};
|
|
626
559
|
exampleSolutions: {
|
|
627
560
|
languageName: string;
|
|
@@ -755,8 +688,6 @@ type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthL
|
|
|
755
688
|
calendar: CalendarConfig;
|
|
756
689
|
};
|
|
757
690
|
|
|
758
|
-
type ParentWebLocaleConfig = CommonLocaleConfig;
|
|
759
|
-
|
|
760
691
|
declare enum MultiplicationSymbol {
|
|
761
692
|
CDOT = "CDOT",
|
|
762
693
|
TIMES = "TIMES"
|
|
@@ -798,9 +729,6 @@ type LocalePreset = {
|
|
|
798
729
|
[Platform.MOBILE]: {
|
|
799
730
|
[key in Locale]: MobileLocaleConfig<MobileVars<SSOByLocale[key]>>;
|
|
800
731
|
};
|
|
801
|
-
[Platform.PARENT_WEB]: {
|
|
802
|
-
[key in Locale]: ParentWebLocaleConfig;
|
|
803
|
-
};
|
|
804
732
|
};
|
|
805
733
|
type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
806
734
|
|
|
@@ -865,4 +793,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
865
793
|
};
|
|
866
794
|
}
|
|
867
795
|
|
|
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,
|
|
796
|
+
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, 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-ClvjFWRr.js';
|
|
2
|
+
export { c as Source } from './common.constants-ClvjFWRr.js';
|
|
1
3
|
import { ComponentType } from 'react';
|
|
2
4
|
import * as effector from 'effector';
|
|
3
5
|
|
|
@@ -37,87 +39,6 @@ declare const MomentDateLocale: {
|
|
|
37
39
|
DE: string;
|
|
38
40
|
};
|
|
39
41
|
|
|
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
|
-
PARENT_WEB = "PARENT_WEB"
|
|
48
|
-
}
|
|
49
|
-
declare enum Environment {
|
|
50
|
-
MARS = "MARS",
|
|
51
|
-
VENUS = "VENUS",
|
|
52
|
-
PROD = "PROD"
|
|
53
|
-
}
|
|
54
|
-
declare enum PlatformBuildTarget {
|
|
55
|
-
PLUTO = "pluto",
|
|
56
|
-
MARS = "mars",
|
|
57
|
-
VENUS = "pre-release",
|
|
58
|
-
PROD = "production"
|
|
59
|
-
}
|
|
60
|
-
declare enum Locale {
|
|
61
|
-
US = "en-SE",
|
|
62
|
-
SE = "sv-SE",
|
|
63
|
-
GB = "en-GB",
|
|
64
|
-
CA = "en-CA",
|
|
65
|
-
SCT = "en-SCT",
|
|
66
|
-
DE = "de-DE"
|
|
67
|
-
}
|
|
68
|
-
declare enum Source {
|
|
69
|
-
MATTEAPPEN = 0,
|
|
70
|
-
SKOLON = 1,
|
|
71
|
-
SKOLFEDERATION = 2,
|
|
72
|
-
GOOGLE = 3,
|
|
73
|
-
MICROSOFT = 4,
|
|
74
|
-
CLEVER = 5,
|
|
75
|
-
APPLE = 6,
|
|
76
|
-
MATHSYNC = 7,
|
|
77
|
-
CLASSLINK = 8,
|
|
78
|
-
EDUCLOUD = 9,
|
|
79
|
-
EGIL = 10,
|
|
80
|
-
WONDE = 12,
|
|
81
|
-
SCHOOLOGY = 13,
|
|
82
|
-
SEEMIS = 14,
|
|
83
|
-
IMPORT = 15,
|
|
84
|
-
CANVAS = 16
|
|
85
|
-
}
|
|
86
|
-
declare enum LoginSource {
|
|
87
|
-
MAGMA = 0,
|
|
88
|
-
CLEVER = 1,
|
|
89
|
-
CLASS_LINK = 2,
|
|
90
|
-
SKOLON = 3,
|
|
91
|
-
SKOLFEDERATION = 4,
|
|
92
|
-
GOOGLE = 5,
|
|
93
|
-
MICROSOFT = 6,
|
|
94
|
-
APPLE = 7,
|
|
95
|
-
SCHOOLOGY = 8,
|
|
96
|
-
MY_LOGIN = 9
|
|
97
|
-
}
|
|
98
|
-
declare enum SSO {
|
|
99
|
-
APPLE = "APPLE",
|
|
100
|
-
GOOGLE = "GOOGLE",
|
|
101
|
-
MICROSOFT = "MICROSOFT",
|
|
102
|
-
CLEVER = "CLEVER",
|
|
103
|
-
SCHOOLOGY = "SCHOOLOGY",
|
|
104
|
-
CLASS_LINK = "CLASS_LINK",
|
|
105
|
-
SKOLFEDERATION = "SKOLFEDERATION",
|
|
106
|
-
SKOLON = "SKOLON",
|
|
107
|
-
WONDE = "WONDE",
|
|
108
|
-
CANVAS = "CANVAS",
|
|
109
|
-
QR_CODE = "QR_CODE"
|
|
110
|
-
}
|
|
111
|
-
declare enum ApiRegion {
|
|
112
|
-
MAIN = "MAIN",
|
|
113
|
-
CANADA = "CANADA"
|
|
114
|
-
}
|
|
115
|
-
declare enum QRCodeSize {
|
|
116
|
-
DEFAULT = "default",
|
|
117
|
-
MEDIUM = "medium",
|
|
118
|
-
LARGE = "large"
|
|
119
|
-
}
|
|
120
|
-
|
|
121
42
|
declare enum MatrixMode {
|
|
122
43
|
SKILL = "SKILL",
|
|
123
44
|
STANDARD = "STANDARD"
|
|
@@ -160,10 +81,10 @@ declare enum NumberDecimalSeparator {
|
|
|
160
81
|
COMMA = ","
|
|
161
82
|
}
|
|
162
83
|
declare enum NumberGroupingSeparator {
|
|
163
|
-
SPACE = "
|
|
164
|
-
COMMA = "
|
|
165
|
-
DOT = "
|
|
166
|
-
APOSTROPHE = "
|
|
84
|
+
SPACE = " ",
|
|
85
|
+
COMMA = ",",
|
|
86
|
+
DOT = ".",
|
|
87
|
+
APOSTROPHE = "'"
|
|
167
88
|
}
|
|
168
89
|
|
|
169
90
|
declare enum TTSOverrideSymbol {
|
|
@@ -380,16 +301,17 @@ type RegionSpecificVars = {
|
|
|
380
301
|
API_URL: string;
|
|
381
302
|
AUTH_WEB_URL: string;
|
|
382
303
|
CDN_HOST: string;
|
|
304
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
383
305
|
DISTRICT_WEB_URL: string;
|
|
384
306
|
LOGGLY_TAG: string;
|
|
385
307
|
MAGMAMATH_URL: string;
|
|
386
|
-
PARENT_WEB_URL: string;
|
|
387
308
|
SOCKET_URL: string;
|
|
388
309
|
STUDENTS_WEB_URL: string;
|
|
389
310
|
TEACHERS_WEB_URL: string;
|
|
390
311
|
};
|
|
391
312
|
|
|
392
313
|
type StudentsWebCommon = {
|
|
314
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
393
315
|
GOOGLE_API_KEY: string;
|
|
394
316
|
DESMOS_API_KEY: string;
|
|
395
317
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -399,6 +321,8 @@ type StudentsWebCommon = {
|
|
|
399
321
|
MYSCRIPT_SOCKET_KEY: string;
|
|
400
322
|
MYSCRIPT_REST_APP_KEY: string;
|
|
401
323
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
324
|
+
TOLGEE_API_URL?: string;
|
|
325
|
+
TOLGEE_API_KEY?: string;
|
|
402
326
|
};
|
|
403
327
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
404
328
|
type StudentsWebVarsPreset = {
|
|
@@ -408,6 +332,7 @@ type StudentsWebVarsPreset = {
|
|
|
408
332
|
};
|
|
409
333
|
|
|
410
334
|
type TeachersWebCommon = {
|
|
335
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
411
336
|
MYSCRIPT_HOST: string;
|
|
412
337
|
MYSCRIPT_REST_APP_KEY: string;
|
|
413
338
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -415,6 +340,8 @@ type TeachersWebCommon = {
|
|
|
415
340
|
INTERCOM_APP_ID: string;
|
|
416
341
|
CLARITY_PROJECT_ID: string;
|
|
417
342
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
343
|
+
TOLGEE_API_URL?: string;
|
|
344
|
+
TOLGEE_API_KEY?: string;
|
|
418
345
|
};
|
|
419
346
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
420
347
|
type TeachersWebVarsPreset = {
|
|
@@ -424,9 +351,12 @@ type TeachersWebVarsPreset = {
|
|
|
424
351
|
};
|
|
425
352
|
|
|
426
353
|
type DistrictCommon = {
|
|
354
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
427
355
|
INTERCOM_APP_ID: string;
|
|
428
356
|
CLARITY_PROJECT_ID: string;
|
|
429
357
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
358
|
+
TOLGEE_API_URL?: string;
|
|
359
|
+
TOLGEE_API_KEY?: string;
|
|
430
360
|
};
|
|
431
361
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
432
362
|
type DistrictWebVarsPreset = {
|
|
@@ -477,6 +407,8 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
|
|
|
477
407
|
TOS_URL: string;
|
|
478
408
|
CLARITY_PROJECT_ID: string;
|
|
479
409
|
INTERCOM_APP_ID: string;
|
|
410
|
+
TOLGEE_API_URL?: string;
|
|
411
|
+
TOLGEE_API_KEY?: string;
|
|
480
412
|
};
|
|
481
413
|
type AuthWebVarsPreset = {
|
|
482
414
|
[Locale.CA]: {
|
|
@@ -500,6 +432,9 @@ type AuthWebVarsPreset = {
|
|
|
500
432
|
};
|
|
501
433
|
|
|
502
434
|
type MobileCommon = {
|
|
435
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
436
|
+
TOLGEE_API_URL?: string;
|
|
437
|
+
TOLGEE_API_KEY?: string;
|
|
503
438
|
DESMOS_API_KEY: string;
|
|
504
439
|
USER_AGENT: string;
|
|
505
440
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -564,17 +499,6 @@ type WebAdminVarsPreset = {
|
|
|
564
499
|
};
|
|
565
500
|
};
|
|
566
501
|
|
|
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
502
|
type EnvPreset = Readonly<{
|
|
579
503
|
[Platform.STUDENTS_WEB]: StudentsWebVarsPreset;
|
|
580
504
|
[Platform.TEACHERS_WEB]: TeachersWebVarsPreset;
|
|
@@ -582,7 +506,6 @@ type EnvPreset = Readonly<{
|
|
|
582
506
|
[Platform.AUTH_WEB]: AuthWebVarsPreset;
|
|
583
507
|
[Platform.WEB_ADMIN]: WebAdminVarsPreset;
|
|
584
508
|
[Platform.MOBILE]: MobileVarsPreset;
|
|
585
|
-
[Platform.PARENT_WEB]: ParentWebVarsPreset;
|
|
586
509
|
}>;
|
|
587
510
|
type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
|
|
588
511
|
|
|
@@ -604,6 +527,15 @@ declare enum KeyboardTimeVariant {
|
|
|
604
527
|
H24 = "H24"
|
|
605
528
|
}
|
|
606
529
|
|
|
530
|
+
declare enum DrawboardCoinVariant {
|
|
531
|
+
DEFAULT = "default",
|
|
532
|
+
US = "us",
|
|
533
|
+
EURO = "euro",
|
|
534
|
+
CA = "ca",
|
|
535
|
+
UK = "uk",
|
|
536
|
+
SE = "se"
|
|
537
|
+
}
|
|
538
|
+
|
|
607
539
|
type KeyboardConfig = {
|
|
608
540
|
preset: KeyboardPreset;
|
|
609
541
|
currencyVariant: KeyboardCurrencyVariant;
|
|
@@ -622,6 +554,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
622
554
|
keyboard: KeyboardConfig;
|
|
623
555
|
drawboard: {
|
|
624
556
|
basicManipulativesMaxGrade: number;
|
|
557
|
+
coinVariant: DrawboardCoinVariant;
|
|
625
558
|
};
|
|
626
559
|
exampleSolutions: {
|
|
627
560
|
languageName: string;
|
|
@@ -755,8 +688,6 @@ type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthL
|
|
|
755
688
|
calendar: CalendarConfig;
|
|
756
689
|
};
|
|
757
690
|
|
|
758
|
-
type ParentWebLocaleConfig = CommonLocaleConfig;
|
|
759
|
-
|
|
760
691
|
declare enum MultiplicationSymbol {
|
|
761
692
|
CDOT = "CDOT",
|
|
762
693
|
TIMES = "TIMES"
|
|
@@ -798,9 +729,6 @@ type LocalePreset = {
|
|
|
798
729
|
[Platform.MOBILE]: {
|
|
799
730
|
[key in Locale]: MobileLocaleConfig<MobileVars<SSOByLocale[key]>>;
|
|
800
731
|
};
|
|
801
|
-
[Platform.PARENT_WEB]: {
|
|
802
|
-
[key in Locale]: ParentWebLocaleConfig;
|
|
803
|
-
};
|
|
804
732
|
};
|
|
805
733
|
type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
806
734
|
|
|
@@ -865,4 +793,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
865
793
|
};
|
|
866
794
|
}
|
|
867
795
|
|
|
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,
|
|
796
|
+
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, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
|