@magmamath/frontend-config 1.1.2-rc.1 → 1.1.2-rc.10
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 +31 -86
- package/dist/index.d.ts +31 -86
- package/dist/index.js +113 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +113 -36
- package/dist/index.mjs.map +1 -1
- package/dist/translation/index.d.mts +47 -0
- package/dist/translation/index.d.ts +47 -0
- package/dist/translation/index.js +102 -0
- package/dist/translation/index.js.map +1 -0
- package/dist/translation/index.mjs +95 -0
- package/dist/translation/index.mjs.map +1 -0
- package/package.json +22 -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,86 +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
|
-
}
|
|
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
42
|
declare enum MatrixMode {
|
|
121
43
|
SKILL = "SKILL",
|
|
122
44
|
STANDARD = "STANDARD"
|
|
@@ -159,10 +81,10 @@ declare enum NumberDecimalSeparator {
|
|
|
159
81
|
COMMA = ","
|
|
160
82
|
}
|
|
161
83
|
declare enum NumberGroupingSeparator {
|
|
162
|
-
SPACE = "
|
|
163
|
-
COMMA = "
|
|
164
|
-
DOT = "
|
|
165
|
-
APOSTROPHE = "
|
|
84
|
+
SPACE = " ",
|
|
85
|
+
COMMA = ",",
|
|
86
|
+
DOT = ".",
|
|
87
|
+
APOSTROPHE = "'"
|
|
166
88
|
}
|
|
167
89
|
|
|
168
90
|
declare enum TTSOverrideSymbol {
|
|
@@ -379,6 +301,7 @@ type RegionSpecificVars = {
|
|
|
379
301
|
API_URL: string;
|
|
380
302
|
AUTH_WEB_URL: string;
|
|
381
303
|
CDN_HOST: string;
|
|
304
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
382
305
|
DISTRICT_WEB_URL: string;
|
|
383
306
|
LOGGLY_TAG: string;
|
|
384
307
|
MAGMAMATH_URL: string;
|
|
@@ -388,6 +311,7 @@ type RegionSpecificVars = {
|
|
|
388
311
|
};
|
|
389
312
|
|
|
390
313
|
type StudentsWebCommon = {
|
|
314
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
391
315
|
GOOGLE_API_KEY: string;
|
|
392
316
|
DESMOS_API_KEY: string;
|
|
393
317
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -397,6 +321,8 @@ type StudentsWebCommon = {
|
|
|
397
321
|
MYSCRIPT_SOCKET_KEY: string;
|
|
398
322
|
MYSCRIPT_REST_APP_KEY: string;
|
|
399
323
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
324
|
+
TOLGEE_API_URL?: string;
|
|
325
|
+
TOLGEE_API_KEY?: string;
|
|
400
326
|
};
|
|
401
327
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
402
328
|
type StudentsWebVarsPreset = {
|
|
@@ -406,6 +332,7 @@ type StudentsWebVarsPreset = {
|
|
|
406
332
|
};
|
|
407
333
|
|
|
408
334
|
type TeachersWebCommon = {
|
|
335
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
409
336
|
MYSCRIPT_HOST: string;
|
|
410
337
|
MYSCRIPT_REST_APP_KEY: string;
|
|
411
338
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -413,6 +340,8 @@ type TeachersWebCommon = {
|
|
|
413
340
|
INTERCOM_APP_ID: string;
|
|
414
341
|
CLARITY_PROJECT_ID: string;
|
|
415
342
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
343
|
+
TOLGEE_API_URL?: string;
|
|
344
|
+
TOLGEE_API_KEY?: string;
|
|
416
345
|
};
|
|
417
346
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
418
347
|
type TeachersWebVarsPreset = {
|
|
@@ -422,9 +351,12 @@ type TeachersWebVarsPreset = {
|
|
|
422
351
|
};
|
|
423
352
|
|
|
424
353
|
type DistrictCommon = {
|
|
354
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
425
355
|
INTERCOM_APP_ID: string;
|
|
426
356
|
CLARITY_PROJECT_ID: string;
|
|
427
357
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
358
|
+
TOLGEE_API_URL?: string;
|
|
359
|
+
TOLGEE_API_KEY?: string;
|
|
428
360
|
};
|
|
429
361
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
430
362
|
type DistrictWebVarsPreset = {
|
|
@@ -471,10 +403,12 @@ type Prettify<T> = T extends Function ? T : {
|
|
|
471
403
|
};
|
|
472
404
|
|
|
473
405
|
type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
|
|
474
|
-
type AuthWebBaseVars = Omit<RegionSpecificVars, 'LOGGLY_TAG' | 'SOCKET_URL'> & {
|
|
406
|
+
type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
|
|
475
407
|
TOS_URL: string;
|
|
476
408
|
CLARITY_PROJECT_ID: string;
|
|
477
409
|
INTERCOM_APP_ID: string;
|
|
410
|
+
TOLGEE_API_URL?: string;
|
|
411
|
+
TOLGEE_API_KEY?: string;
|
|
478
412
|
};
|
|
479
413
|
type AuthWebVarsPreset = {
|
|
480
414
|
[Locale.CA]: {
|
|
@@ -498,6 +432,7 @@ type AuthWebVarsPreset = {
|
|
|
498
432
|
};
|
|
499
433
|
|
|
500
434
|
type MobileCommon = {
|
|
435
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
501
436
|
DESMOS_API_KEY: string;
|
|
502
437
|
USER_AGENT: string;
|
|
503
438
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -590,6 +525,15 @@ declare enum KeyboardTimeVariant {
|
|
|
590
525
|
H24 = "H24"
|
|
591
526
|
}
|
|
592
527
|
|
|
528
|
+
declare enum DrawboardCoinVariant {
|
|
529
|
+
DEFAULT = "default",
|
|
530
|
+
US = "us",
|
|
531
|
+
EURO = "euro",
|
|
532
|
+
CA = "ca",
|
|
533
|
+
UK = "uk",
|
|
534
|
+
SE = "se"
|
|
535
|
+
}
|
|
536
|
+
|
|
593
537
|
type KeyboardConfig = {
|
|
594
538
|
preset: KeyboardPreset;
|
|
595
539
|
currencyVariant: KeyboardCurrencyVariant;
|
|
@@ -608,6 +552,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
608
552
|
keyboard: KeyboardConfig;
|
|
609
553
|
drawboard: {
|
|
610
554
|
basicManipulativesMaxGrade: number;
|
|
555
|
+
coinVariant: DrawboardCoinVariant;
|
|
611
556
|
};
|
|
612
557
|
exampleSolutions: {
|
|
613
558
|
languageName: string;
|
|
@@ -846,4 +791,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
846
791
|
};
|
|
847
792
|
}
|
|
848
793
|
|
|
849
|
-
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, 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,
|
|
794
|
+
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,86 +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
|
-
}
|
|
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
42
|
declare enum MatrixMode {
|
|
121
43
|
SKILL = "SKILL",
|
|
122
44
|
STANDARD = "STANDARD"
|
|
@@ -159,10 +81,10 @@ declare enum NumberDecimalSeparator {
|
|
|
159
81
|
COMMA = ","
|
|
160
82
|
}
|
|
161
83
|
declare enum NumberGroupingSeparator {
|
|
162
|
-
SPACE = "
|
|
163
|
-
COMMA = "
|
|
164
|
-
DOT = "
|
|
165
|
-
APOSTROPHE = "
|
|
84
|
+
SPACE = " ",
|
|
85
|
+
COMMA = ",",
|
|
86
|
+
DOT = ".",
|
|
87
|
+
APOSTROPHE = "'"
|
|
166
88
|
}
|
|
167
89
|
|
|
168
90
|
declare enum TTSOverrideSymbol {
|
|
@@ -379,6 +301,7 @@ type RegionSpecificVars = {
|
|
|
379
301
|
API_URL: string;
|
|
380
302
|
AUTH_WEB_URL: string;
|
|
381
303
|
CDN_HOST: string;
|
|
304
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
382
305
|
DISTRICT_WEB_URL: string;
|
|
383
306
|
LOGGLY_TAG: string;
|
|
384
307
|
MAGMAMATH_URL: string;
|
|
@@ -388,6 +311,7 @@ type RegionSpecificVars = {
|
|
|
388
311
|
};
|
|
389
312
|
|
|
390
313
|
type StudentsWebCommon = {
|
|
314
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
391
315
|
GOOGLE_API_KEY: string;
|
|
392
316
|
DESMOS_API_KEY: string;
|
|
393
317
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -397,6 +321,8 @@ type StudentsWebCommon = {
|
|
|
397
321
|
MYSCRIPT_SOCKET_KEY: string;
|
|
398
322
|
MYSCRIPT_REST_APP_KEY: string;
|
|
399
323
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
324
|
+
TOLGEE_API_URL?: string;
|
|
325
|
+
TOLGEE_API_KEY?: string;
|
|
400
326
|
};
|
|
401
327
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
402
328
|
type StudentsWebVarsPreset = {
|
|
@@ -406,6 +332,7 @@ type StudentsWebVarsPreset = {
|
|
|
406
332
|
};
|
|
407
333
|
|
|
408
334
|
type TeachersWebCommon = {
|
|
335
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
409
336
|
MYSCRIPT_HOST: string;
|
|
410
337
|
MYSCRIPT_REST_APP_KEY: string;
|
|
411
338
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -413,6 +340,8 @@ type TeachersWebCommon = {
|
|
|
413
340
|
INTERCOM_APP_ID: string;
|
|
414
341
|
CLARITY_PROJECT_ID: string;
|
|
415
342
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
343
|
+
TOLGEE_API_URL?: string;
|
|
344
|
+
TOLGEE_API_KEY?: string;
|
|
416
345
|
};
|
|
417
346
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
418
347
|
type TeachersWebVarsPreset = {
|
|
@@ -422,9 +351,12 @@ type TeachersWebVarsPreset = {
|
|
|
422
351
|
};
|
|
423
352
|
|
|
424
353
|
type DistrictCommon = {
|
|
354
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
425
355
|
INTERCOM_APP_ID: string;
|
|
426
356
|
CLARITY_PROJECT_ID: string;
|
|
427
357
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
358
|
+
TOLGEE_API_URL?: string;
|
|
359
|
+
TOLGEE_API_KEY?: string;
|
|
428
360
|
};
|
|
429
361
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
430
362
|
type DistrictWebVarsPreset = {
|
|
@@ -471,10 +403,12 @@ type Prettify<T> = T extends Function ? T : {
|
|
|
471
403
|
};
|
|
472
404
|
|
|
473
405
|
type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
|
|
474
|
-
type AuthWebBaseVars = Omit<RegionSpecificVars, 'LOGGLY_TAG' | 'SOCKET_URL'> & {
|
|
406
|
+
type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
|
|
475
407
|
TOS_URL: string;
|
|
476
408
|
CLARITY_PROJECT_ID: string;
|
|
477
409
|
INTERCOM_APP_ID: string;
|
|
410
|
+
TOLGEE_API_URL?: string;
|
|
411
|
+
TOLGEE_API_KEY?: string;
|
|
478
412
|
};
|
|
479
413
|
type AuthWebVarsPreset = {
|
|
480
414
|
[Locale.CA]: {
|
|
@@ -498,6 +432,7 @@ type AuthWebVarsPreset = {
|
|
|
498
432
|
};
|
|
499
433
|
|
|
500
434
|
type MobileCommon = {
|
|
435
|
+
CDN_HOST_TRANSLATIONS: string;
|
|
501
436
|
DESMOS_API_KEY: string;
|
|
502
437
|
USER_AGENT: string;
|
|
503
438
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -590,6 +525,15 @@ declare enum KeyboardTimeVariant {
|
|
|
590
525
|
H24 = "H24"
|
|
591
526
|
}
|
|
592
527
|
|
|
528
|
+
declare enum DrawboardCoinVariant {
|
|
529
|
+
DEFAULT = "default",
|
|
530
|
+
US = "us",
|
|
531
|
+
EURO = "euro",
|
|
532
|
+
CA = "ca",
|
|
533
|
+
UK = "uk",
|
|
534
|
+
SE = "se"
|
|
535
|
+
}
|
|
536
|
+
|
|
593
537
|
type KeyboardConfig = {
|
|
594
538
|
preset: KeyboardPreset;
|
|
595
539
|
currencyVariant: KeyboardCurrencyVariant;
|
|
@@ -608,6 +552,7 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
608
552
|
keyboard: KeyboardConfig;
|
|
609
553
|
drawboard: {
|
|
610
554
|
basicManipulativesMaxGrade: number;
|
|
555
|
+
coinVariant: DrawboardCoinVariant;
|
|
611
556
|
};
|
|
612
557
|
exampleSolutions: {
|
|
613
558
|
languageName: string;
|
|
@@ -846,4 +791,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
846
791
|
};
|
|
847
792
|
}
|
|
848
793
|
|
|
849
|
-
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, 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,
|
|
794
|
+
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 };
|