@magmamath/frontend-config 1.1.2-rc.8 → 1.1.2
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 +152 -409
- package/dist/index.d.ts +152 -409
- package/dist/index.js +23 -113
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -113
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -22
- package/dist/common.constants-ClvjFWRr.d.mts +0 -81
- package/dist/common.constants-ClvjFWRr.d.ts +0 -81
- package/dist/translation/index.d.mts +0 -41
- package/dist/translation/index.d.ts +0 -41
- package/dist/translation/index.js +0 -98
- package/dist/translation/index.js.map +0 -1
- package/dist/translation/index.mjs +0 -91
- package/dist/translation/index.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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';
|
|
3
1
|
import { ComponentType } from 'react';
|
|
4
2
|
import * as effector from 'effector';
|
|
5
3
|
|
|
@@ -14,9 +12,7 @@ declare enum DateFormat {
|
|
|
14
12
|
DAY_MONTH_US = "MMM DD",
|
|
15
13
|
YEAR_MONTH_DAY = "YYYY-MM-DD",
|
|
16
14
|
FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
|
|
17
|
-
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
18
|
-
MONTH_DAY_TIME = "MMM D HH:mm",
|
|
19
|
-
MONTH_DAY_TIME_US = "MMM D hh:mm A"
|
|
15
|
+
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
20
16
|
}
|
|
21
17
|
declare const DateLocale: {
|
|
22
18
|
readonly US: "en";
|
|
@@ -33,259 +29,94 @@ declare const DateLocale: {
|
|
|
33
29
|
readonly 'de-DE': "de";
|
|
34
30
|
};
|
|
35
31
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
36
|
-
declare const MomentDateLocale: {
|
|
37
|
-
GB: string;
|
|
38
|
-
SE: string;
|
|
39
|
-
DE: string;
|
|
40
|
-
};
|
|
41
32
|
|
|
42
|
-
declare enum
|
|
43
|
-
|
|
44
|
-
|
|
33
|
+
declare enum Platform {
|
|
34
|
+
STUDENTS_WEB = "STUDENTS",
|
|
35
|
+
TEACHERS_WEB = "TEACHERS",
|
|
36
|
+
DISTRICT_DASHBOARD = "DISTRICT",
|
|
37
|
+
AUTH_WEB = "AUTH_WEB",
|
|
38
|
+
WEB_ADMIN = "WEB_ADMIN",
|
|
39
|
+
MOBILE = "MOBILE"
|
|
45
40
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
ONE = 1,
|
|
51
|
-
TWO = 2,
|
|
52
|
-
THREE = 3,
|
|
53
|
-
FOUR = 4,
|
|
54
|
-
FIVE = 5,
|
|
55
|
-
SIX = 6,
|
|
56
|
-
SEVEN = 7,
|
|
57
|
-
EIGHT = 8,
|
|
58
|
-
NINE = 9,
|
|
59
|
-
TEN = 10,
|
|
60
|
-
ELEVEN = 11,
|
|
61
|
-
TWELVE = 12,
|
|
62
|
-
THIRTEEN = 13,
|
|
63
|
-
ALGEBRA_1 = 21,
|
|
64
|
-
GEOMETRY = 22,
|
|
65
|
-
ALGEBRA_2 = 23,
|
|
66
|
-
INTEGRATED_MATH_I = 24,
|
|
67
|
-
INTEGRATED_MATH_II = 25,
|
|
68
|
-
INTEGRATED_MATH_III = 26,
|
|
69
|
-
PRECALCULUS = 27,
|
|
70
|
-
HS = "HS",
|
|
71
|
-
HSG = "HSG",
|
|
72
|
-
HSA = "HSA",
|
|
73
|
-
HSS = "HSS",
|
|
74
|
-
HSF = "HSF",
|
|
75
|
-
HSN = "HSN",
|
|
76
|
-
K = "K"
|
|
41
|
+
declare enum Environment {
|
|
42
|
+
MARS = "MARS",
|
|
43
|
+
VENUS = "VENUS",
|
|
44
|
+
PROD = "PROD"
|
|
77
45
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
46
|
+
declare enum PlatformBuildTarget {
|
|
47
|
+
PLUTO = "pluto",
|
|
48
|
+
MARS = "mars",
|
|
49
|
+
VENUS = "pre-release",
|
|
50
|
+
PROD = "production"
|
|
82
51
|
}
|
|
83
|
-
declare enum
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
52
|
+
declare enum Locale {
|
|
53
|
+
US = "en-SE",
|
|
54
|
+
SE = "sv-SE",
|
|
55
|
+
GB = "en-GB",
|
|
56
|
+
CA = "en-CA",
|
|
57
|
+
SCT = "en-SCT",
|
|
58
|
+
DE = "de-DE"
|
|
88
59
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
60
|
+
declare enum Source {
|
|
61
|
+
MATTEAPPEN = 0,
|
|
62
|
+
SKOLON = 1,
|
|
63
|
+
SKOLFEDERATION = 2,
|
|
64
|
+
GOOGLE = 3,
|
|
65
|
+
MICROSOFT = 4,
|
|
66
|
+
CLEVER = 5,
|
|
67
|
+
APPLE = 6,
|
|
68
|
+
MATHSYNC = 7,
|
|
69
|
+
CLASSLINK = 8,
|
|
70
|
+
EDUCLOUD = 9,
|
|
71
|
+
EGIL = 10,
|
|
72
|
+
WONDE = 12,
|
|
73
|
+
SCHOOLOGY = 13,
|
|
74
|
+
SEEMIS = 14,
|
|
75
|
+
IMPORT = 15,
|
|
76
|
+
CANVAS = 16
|
|
92
77
|
}
|
|
93
|
-
declare enum
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
BELARUSIAN = "Belarusian",
|
|
105
|
-
BENGALI = "Bengali",
|
|
106
|
-
BHOJPURI = "Bhojpuri",
|
|
107
|
-
BOSNIAN = "Bosnian",
|
|
108
|
-
BULGARIAN = "Bulgarian",
|
|
109
|
-
CATALAN = "Catalan",
|
|
110
|
-
CEBUANO = "Cebuano",
|
|
111
|
-
CHINESE_SIMPLIFIED = "Chinese (Simplified)",
|
|
112
|
-
CHINESE_TRADITIONAL = "Chinese (Traditional)",
|
|
113
|
-
CORSICAN = "Corsican",
|
|
114
|
-
CROATIAN = "Croatian",
|
|
115
|
-
CZECH = "Czech",
|
|
116
|
-
DANISH = "Danish",
|
|
117
|
-
DHIVEHI = "Dhivehi",
|
|
118
|
-
DOGRI = "Dogri",
|
|
119
|
-
DUTCH = "Dutch",
|
|
120
|
-
ENGLISH = "English",
|
|
121
|
-
BRITISH_ENGLISH = "British English",
|
|
122
|
-
ESPERANTO = "Esperanto",
|
|
123
|
-
ESTONIAN = "Estonian",
|
|
124
|
-
EWE = "Ewe",
|
|
125
|
-
FINNISH = "Finnish",
|
|
126
|
-
FRENCH = "French",
|
|
127
|
-
FRISIAN = "Frisian",
|
|
128
|
-
GALICIAN = "Galician",
|
|
129
|
-
GEORGIAN = "Georgian",
|
|
130
|
-
GERMAN = "German",
|
|
131
|
-
GREEK = "Greek",
|
|
132
|
-
GUARANI = "Guarani",
|
|
133
|
-
GUJARATI = "Gujarati",
|
|
134
|
-
HAITIAN_CREOLE = "Haitian Creole",
|
|
135
|
-
HAUSA = "Hausa",
|
|
136
|
-
HAWAIIAN = "Hawaiian",
|
|
137
|
-
HEBREW = "Hebrew",
|
|
138
|
-
HINDI = "Hindi",
|
|
139
|
-
HMONG = "Hmong",
|
|
140
|
-
HUNGARIAN = "Hungarian",
|
|
141
|
-
ICELANDIC = "Icelandic",
|
|
142
|
-
IGBO = "Igbo",
|
|
143
|
-
ILOCANO = "Ilocano",
|
|
144
|
-
INDONESIAN = "Indonesian",
|
|
145
|
-
IRISH = "Irish",
|
|
146
|
-
ITALIAN = "Italian",
|
|
147
|
-
JAPANESE = "Japanese",
|
|
148
|
-
JAVANESE = "Javanese",
|
|
149
|
-
KANNADA = "Kannada",
|
|
150
|
-
KAZAKH = "Kazakh",
|
|
151
|
-
KHMER = "Khmer",
|
|
152
|
-
KINYARWANDA = "Kinyarwanda",
|
|
153
|
-
KONKANI = "Konkani",
|
|
154
|
-
KOREAN = "Korean",
|
|
155
|
-
KRIO = "Krio",
|
|
156
|
-
KURDISH = "Kurdish",
|
|
157
|
-
KURDISH_SORANI = "Kurdish (Sorani)",
|
|
158
|
-
KYRGYZ = "Kyrgyz",
|
|
159
|
-
LAO = "Lao",
|
|
160
|
-
LATVIAN = "Latvian",
|
|
161
|
-
LINGALA = "Lingala",
|
|
162
|
-
LITHUANIAN = "Lithuanian",
|
|
163
|
-
LUGANDA = "Luganda",
|
|
164
|
-
LUXEMBOURGISH = "Luxembourgish",
|
|
165
|
-
MACEDONIAN = "Macedonian",
|
|
166
|
-
MAITHILI = "Maithili",
|
|
167
|
-
MALAGASY = "Malagasy",
|
|
168
|
-
MALAY = "Malay",
|
|
169
|
-
MALAYALAM = "Malayalam",
|
|
170
|
-
MALTESE = "Maltese",
|
|
171
|
-
MAORI = "Maori",
|
|
172
|
-
MARATHI = "Marathi",
|
|
173
|
-
MEITEILON_MANIPURI = "Meiteilon (Manipuri)",
|
|
174
|
-
MIZO = "Mizo",
|
|
175
|
-
MONGOLIAN = "Mongolian",
|
|
176
|
-
MYANMAR_BURMESE = "Myanmar (Burmese)",
|
|
177
|
-
NEPALI = "Nepali",
|
|
178
|
-
NORWEGIAN = "Norwegian",
|
|
179
|
-
NYANJA_CHICHEWA = "Nyanja (Chichewa)",
|
|
180
|
-
ODIA_ORIYA = "Odia (Oriya)",
|
|
181
|
-
OROMO = "Oromo",
|
|
182
|
-
PASHTO = "Pashto",
|
|
183
|
-
PERSIAN = "Persian (Farsi)",
|
|
184
|
-
POLISH = "Polish",
|
|
185
|
-
PORTUGUESE_PORTUGAL_BRAZIL = "Portuguese (Portugal, Brazil)",
|
|
186
|
-
PUNJABI = "Punjabi",
|
|
187
|
-
QUECHUA = "Quechua",
|
|
188
|
-
ROMANIAN = "Romanian",
|
|
189
|
-
RUSSIAN = "Russian",
|
|
190
|
-
SAMOAN = "Samoan",
|
|
191
|
-
SANSKRIT = "Sanskrit",
|
|
192
|
-
SCOTS_GAELIC = "Scots Gaelic",
|
|
193
|
-
SEPEDI = "Sepedi",
|
|
194
|
-
SERBIAN = "Serbian",
|
|
195
|
-
SESOTHO = "Sesotho",
|
|
196
|
-
SHONA = "Shona",
|
|
197
|
-
SINDHI = "Sindhi",
|
|
198
|
-
SINHALA_SINHALESE = "Sinhala (Sinhalese)",
|
|
199
|
-
SLOVAK = "Slovak",
|
|
200
|
-
SLOVENIAN = "Slovenian",
|
|
201
|
-
SOMALI = "Somali",
|
|
202
|
-
SPANISH = "Spanish",
|
|
203
|
-
SUNDANESE = "Sundanese",
|
|
204
|
-
SWAHILI = "Swahili",
|
|
205
|
-
SWEDISH = "Swedish",
|
|
206
|
-
TAGALOG_FILIPINO = "Tagalog (Filipino)",
|
|
207
|
-
TAJIK = "Tajik",
|
|
208
|
-
TAMIL = "Tamil",
|
|
209
|
-
TATAR = "Tatar",
|
|
210
|
-
TELUGU = "Telugu",
|
|
211
|
-
THAI = "Thai",
|
|
212
|
-
TIGRINYA = "Tigrinya",
|
|
213
|
-
TSONGA = "Tsonga",
|
|
214
|
-
TURKISH = "Turkish",
|
|
215
|
-
TURKMEN = "Turkmen",
|
|
216
|
-
TWI_AKAN = "Twi (Akan)",
|
|
217
|
-
UKRAINIAN = "Ukrainian",
|
|
218
|
-
URDU = "Urdu",
|
|
219
|
-
UYGHUR = "Uyghur",
|
|
220
|
-
UZBEK = "Uzbek",
|
|
221
|
-
VIETNAMESE = "Vietnamese",
|
|
222
|
-
WELSH = "Welsh",
|
|
223
|
-
XHOSA = "Xhosa",
|
|
224
|
-
YIDDISH = "Yiddish",
|
|
225
|
-
YORUBA = "Yoruba",
|
|
226
|
-
ZULU = "Zulu"
|
|
78
|
+
declare enum LoginSource {
|
|
79
|
+
MAGMA = 0,
|
|
80
|
+
CLEVER = 1,
|
|
81
|
+
CLASS_LINK = 2,
|
|
82
|
+
SKOLON = 3,
|
|
83
|
+
SKOLFEDERATION = 4,
|
|
84
|
+
GOOGLE = 5,
|
|
85
|
+
MICROSOFT = 6,
|
|
86
|
+
APPLE = 7,
|
|
87
|
+
SCHOOLOGY = 8,
|
|
88
|
+
MY_LOGIN = 9
|
|
227
89
|
}
|
|
228
|
-
declare
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
preprocessing?: {
|
|
241
|
-
commaAsSpace?: boolean;
|
|
242
|
-
overrides?: Record<TTSOverrideSymbol, string>;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
declare enum TreeLevel {
|
|
248
|
-
DOMAIN = 0,
|
|
249
|
-
STANDARD = 1,
|
|
250
|
-
SKILL = 2
|
|
90
|
+
declare enum SSO {
|
|
91
|
+
APPLE = "APPLE",
|
|
92
|
+
GOOGLE = "GOOGLE",
|
|
93
|
+
MICROSOFT = "MICROSOFT",
|
|
94
|
+
CLEVER = "CLEVER",
|
|
95
|
+
SCHOOLOGY = "SCHOOLOGY",
|
|
96
|
+
CLASS_LINK = "CLASS_LINK",
|
|
97
|
+
SKOLFEDERATION = "SKOLFEDERATION",
|
|
98
|
+
SKOLON = "SKOLON",
|
|
99
|
+
WONDE = "WONDE",
|
|
100
|
+
CANVAS = "CANVAS",
|
|
101
|
+
QR_CODE = "QR_CODE"
|
|
251
102
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
MONDAY = 1
|
|
103
|
+
declare enum ApiRegion {
|
|
104
|
+
MAIN = "MAIN",
|
|
105
|
+
CANADA = "CANADA"
|
|
256
106
|
}
|
|
257
|
-
declare enum
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
107
|
+
declare enum QRCodeSize {
|
|
108
|
+
DEFAULT = "default",
|
|
109
|
+
MEDIUM = "medium",
|
|
110
|
+
LARGE = "large"
|
|
261
111
|
}
|
|
262
|
-
type CalendarConfig = {
|
|
263
|
-
locale: CalendarLocale;
|
|
264
|
-
weekFirstDay: WeekStart;
|
|
265
|
-
monthNames: string[];
|
|
266
|
-
dayNames: string[];
|
|
267
|
-
dayNamesShort: string[];
|
|
268
|
-
monthNamesShort: string[];
|
|
269
|
-
today: string;
|
|
270
|
-
};
|
|
271
|
-
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
272
|
-
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
273
|
-
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
274
112
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
excludeFromPieChart?: boolean;
|
|
280
|
-
};
|
|
281
|
-
type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
|
|
282
|
-
type PrimaryGrades = CommonGrades | Grade.ONE | Grade.TWO | Grade.THREE | Grade.FOUR | Grade.FIVE | Grade.SIX | Grade.SEVEN | Grade.EIGHT | Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.THIRTEEN;
|
|
283
|
-
type HighSchoolGrades = Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.ALGEBRA_1 | Grade.GEOMETRY | Grade.ALGEBRA_2 | Grade.INTEGRATED_MATH_I | Grade.INTEGRATED_MATH_II | Grade.INTEGRATED_MATH_III | Grade.PRECALCULUS | Grade.HS | Grade.HSG | Grade.HSA | Grade.HSS | Grade.HSF | Grade.HSN;
|
|
113
|
+
declare enum MatrixMode {
|
|
114
|
+
SKILL = "SKILL",
|
|
115
|
+
STANDARD = "STANDARD"
|
|
116
|
+
}
|
|
284
117
|
|
|
285
118
|
type IconProps = {
|
|
286
119
|
size?: number;
|
|
287
|
-
color?: string;
|
|
288
|
-
extraColor?: string;
|
|
289
120
|
};
|
|
290
121
|
|
|
291
122
|
type SSOConfig<E> = Readonly<{
|
|
@@ -301,7 +132,6 @@ type RegionSpecificVars = {
|
|
|
301
132
|
API_URL: string;
|
|
302
133
|
AUTH_WEB_URL: string;
|
|
303
134
|
CDN_HOST: string;
|
|
304
|
-
CDN_HOST_TRANSLATIONS: string;
|
|
305
135
|
DISTRICT_WEB_URL: string;
|
|
306
136
|
LOGGLY_TAG: string;
|
|
307
137
|
MAGMAMATH_URL: string;
|
|
@@ -311,7 +141,6 @@ type RegionSpecificVars = {
|
|
|
311
141
|
};
|
|
312
142
|
|
|
313
143
|
type StudentsWebCommon = {
|
|
314
|
-
CDN_HOST_TRANSLATIONS: string;
|
|
315
144
|
GOOGLE_API_KEY: string;
|
|
316
145
|
DESMOS_API_KEY: string;
|
|
317
146
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -321,8 +150,6 @@ type StudentsWebCommon = {
|
|
|
321
150
|
MYSCRIPT_SOCKET_KEY: string;
|
|
322
151
|
MYSCRIPT_REST_APP_KEY: string;
|
|
323
152
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
324
|
-
TOLGEE_API_URL?: string;
|
|
325
|
-
TOLGEE_API_KEY?: string;
|
|
326
153
|
};
|
|
327
154
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
328
155
|
type StudentsWebVarsPreset = {
|
|
@@ -332,7 +159,6 @@ type StudentsWebVarsPreset = {
|
|
|
332
159
|
};
|
|
333
160
|
|
|
334
161
|
type TeachersWebCommon = {
|
|
335
|
-
CDN_HOST_TRANSLATIONS: string;
|
|
336
162
|
MYSCRIPT_HOST: string;
|
|
337
163
|
MYSCRIPT_REST_APP_KEY: string;
|
|
338
164
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
@@ -340,8 +166,6 @@ type TeachersWebCommon = {
|
|
|
340
166
|
INTERCOM_APP_ID: string;
|
|
341
167
|
CLARITY_PROJECT_ID: string;
|
|
342
168
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
343
|
-
TOLGEE_API_URL?: string;
|
|
344
|
-
TOLGEE_API_KEY?: string;
|
|
345
169
|
};
|
|
346
170
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
347
171
|
type TeachersWebVarsPreset = {
|
|
@@ -351,12 +175,9 @@ type TeachersWebVarsPreset = {
|
|
|
351
175
|
};
|
|
352
176
|
|
|
353
177
|
type DistrictCommon = {
|
|
354
|
-
CDN_HOST_TRANSLATIONS: string;
|
|
355
178
|
INTERCOM_APP_ID: string;
|
|
356
179
|
CLARITY_PROJECT_ID: string;
|
|
357
180
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
358
|
-
TOLGEE_API_URL?: string;
|
|
359
|
-
TOLGEE_API_KEY?: string;
|
|
360
181
|
};
|
|
361
182
|
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
362
183
|
type DistrictWebVarsPreset = {
|
|
@@ -407,8 +228,6 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
|
|
|
407
228
|
TOS_URL: string;
|
|
408
229
|
CLARITY_PROJECT_ID: string;
|
|
409
230
|
INTERCOM_APP_ID: string;
|
|
410
|
-
TOLGEE_API_URL?: string;
|
|
411
|
-
TOLGEE_API_KEY?: string;
|
|
412
231
|
};
|
|
413
232
|
type AuthWebVarsPreset = {
|
|
414
233
|
[Locale.CA]: {
|
|
@@ -432,7 +251,6 @@ type AuthWebVarsPreset = {
|
|
|
432
251
|
};
|
|
433
252
|
|
|
434
253
|
type MobileCommon = {
|
|
435
|
-
CDN_HOST_TRANSLATIONS: string;
|
|
436
254
|
DESMOS_API_KEY: string;
|
|
437
255
|
USER_AGENT: string;
|
|
438
256
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
@@ -445,8 +263,6 @@ type MobileCommon = {
|
|
|
445
263
|
GOOGLE_API_KEY: string;
|
|
446
264
|
GOOGLE_TEXT_TO_SPEECH_URL: string;
|
|
447
265
|
GOOGLE_TRANSLATE_URL: string;
|
|
448
|
-
SIGN_UP_BOOKING_ONBOARDING: string;
|
|
449
|
-
TOS_URL: string;
|
|
450
266
|
};
|
|
451
267
|
type MobileBaseVars = {
|
|
452
268
|
TEACHERS_WEB_URL: string;
|
|
@@ -455,7 +271,6 @@ type MobileBaseVars = {
|
|
|
455
271
|
CDN_HOST: string;
|
|
456
272
|
SOCKET_URL: string;
|
|
457
273
|
LOGGLY_TAG: string;
|
|
458
|
-
PROBLEM_CREATOR_URL: string;
|
|
459
274
|
} & MobileCommon;
|
|
460
275
|
type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
|
|
461
276
|
type MobileVarsPreset = {
|
|
@@ -509,124 +324,118 @@ type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
|
|
|
509
324
|
|
|
510
325
|
declare function buildTargetToEnvironment(buildTarget: PlatformBuildTarget): Environment;
|
|
511
326
|
|
|
512
|
-
declare enum KeyboardPreset {
|
|
513
|
-
DOT_MIXED = "DotMixed",
|
|
514
|
-
DOT_MIXED_ALT = "DotMixedAlt",
|
|
515
|
-
COMMA_METRIC = "CommaMetric"
|
|
516
|
-
}
|
|
517
|
-
declare enum KeyboardCurrencyVariant {
|
|
518
|
-
DOLLAR_CENT = "DollarCent",
|
|
519
|
-
POUND_PENCE = "PoundPence",
|
|
520
|
-
KRONE_EURO_POUND = "KroneEuroPound",
|
|
521
|
-
EURO_DOLLAR_POUND = "EuroDollarPound"
|
|
522
|
-
}
|
|
523
|
-
declare enum KeyboardTimeVariant {
|
|
524
|
-
H12 = "H12",
|
|
525
|
-
H24 = "H24"
|
|
526
|
-
}
|
|
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
|
-
|
|
537
|
-
type KeyboardConfig = {
|
|
538
|
-
preset: KeyboardPreset;
|
|
539
|
-
currencyVariant: KeyboardCurrencyVariant;
|
|
540
|
-
timeVariant: KeyboardTimeVariant;
|
|
541
|
-
};
|
|
542
|
-
type LocaleLanguageData = LanguageConfig & {
|
|
543
|
-
name: Language;
|
|
544
|
-
};
|
|
545
327
|
type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
546
|
-
|
|
328
|
+
textFormatting: {
|
|
329
|
+
replaceCommaWithSpace: boolean;
|
|
330
|
+
};
|
|
331
|
+
symbols: {
|
|
332
|
+
numberDecimalSeparator: string;
|
|
333
|
+
};
|
|
547
334
|
practiceMode: {
|
|
548
|
-
|
|
335
|
+
languageCode: Locale;
|
|
549
336
|
defaultPracticeTreeId: string;
|
|
550
|
-
alwaysShowNavigationTab?: boolean;
|
|
551
337
|
};
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
338
|
+
chatbot: {
|
|
339
|
+
languageName: string;
|
|
340
|
+
tts: {
|
|
341
|
+
languageCodeFallback: string;
|
|
342
|
+
voiceNameFallback: string;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
345
|
+
tts: {
|
|
346
|
+
replaceCommaWithSpace: boolean;
|
|
347
|
+
};
|
|
348
|
+
translate: {
|
|
349
|
+
languageCodeFallback: string;
|
|
350
|
+
};
|
|
351
|
+
problem: {
|
|
352
|
+
choiceInputSelector: {
|
|
353
|
+
useSmallText: boolean;
|
|
354
|
+
};
|
|
355
|
+
choiceAnswerFeedback: {
|
|
356
|
+
useSlimLayout: boolean;
|
|
357
|
+
};
|
|
358
|
+
answer: {
|
|
359
|
+
shortButton: boolean;
|
|
360
|
+
};
|
|
556
361
|
};
|
|
557
362
|
exampleSolutions: {
|
|
558
363
|
languageName: string;
|
|
559
364
|
};
|
|
560
|
-
|
|
561
|
-
|
|
365
|
+
statsTab: {
|
|
366
|
+
buttonWithMinWidth: boolean;
|
|
562
367
|
};
|
|
563
|
-
|
|
564
|
-
|
|
368
|
+
smartEval: {
|
|
369
|
+
language: string;
|
|
565
370
|
};
|
|
566
371
|
};
|
|
567
372
|
|
|
568
|
-
declare enum ProblemCreatorKeyboardPreset {
|
|
569
|
-
DOT_MIXED = "DotMixed",
|
|
570
|
-
COMMA_METRIC = "CommaMetric"
|
|
571
|
-
}
|
|
572
|
-
declare enum ProblemCreatorMathEntryVariant {
|
|
573
|
-
DOLLAR = "Dollar",
|
|
574
|
-
KRONE = "Krone",
|
|
575
|
-
POUND_PENCE = "PoundPence",
|
|
576
|
-
EURO = "Euro"
|
|
577
|
-
}
|
|
578
|
-
declare enum ProblemCreatorDescriptionVariant {
|
|
579
|
-
EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
|
|
580
|
-
DOT_EXTENDED_ROOTS = "DotExtendedRoots",
|
|
581
|
-
DOT_BASIC_ROOTS = "DotBasicRoots"
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
type ProblemCreatorKeyboardConfig = {
|
|
585
|
-
preset: ProblemCreatorKeyboardPreset;
|
|
586
|
-
mathEntryVariant: ProblemCreatorMathEntryVariant;
|
|
587
|
-
descriptionVariant: ProblemCreatorDescriptionVariant;
|
|
588
|
-
};
|
|
589
|
-
type ProblemCreatorConfig = {
|
|
590
|
-
useCommaForDecimal: boolean;
|
|
591
|
-
useDotForMultiplication: boolean;
|
|
592
|
-
savedProblemLocale: Locale;
|
|
593
|
-
keyboard: ProblemCreatorKeyboardConfig;
|
|
594
|
-
};
|
|
595
|
-
|
|
596
373
|
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
374
|
+
country: string;
|
|
597
375
|
emails: {
|
|
598
376
|
studentsList: string;
|
|
599
377
|
};
|
|
378
|
+
symbols: {
|
|
379
|
+
decimalSeparator: string;
|
|
380
|
+
};
|
|
381
|
+
date: {
|
|
382
|
+
use24HourFormat: boolean;
|
|
383
|
+
locale: DateLocale;
|
|
384
|
+
formats: {
|
|
385
|
+
full: DateFormat;
|
|
386
|
+
dayMonth: DateFormat;
|
|
387
|
+
hoursMinutes: DateFormat;
|
|
388
|
+
fullWithSeconds: DateFormat;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
600
391
|
urls: {
|
|
601
392
|
specialBook: string;
|
|
602
393
|
helpCenter: string;
|
|
603
394
|
about: string;
|
|
604
|
-
|
|
395
|
+
};
|
|
396
|
+
bookshelf: {
|
|
397
|
+
limitSharedExercisesTooltipWidth: boolean;
|
|
605
398
|
};
|
|
606
399
|
problemsList: {
|
|
607
400
|
showProblemComplexity: boolean;
|
|
608
401
|
};
|
|
609
402
|
practiceMode: {
|
|
610
|
-
|
|
611
|
-
alwaysEnabled: boolean;
|
|
403
|
+
defaultTreeIdFallback: string;
|
|
612
404
|
};
|
|
613
405
|
matrix: {
|
|
614
406
|
forceShowRecommendations: boolean;
|
|
615
|
-
filterStandardsByGradeLevel: boolean;
|
|
616
407
|
forceMatrixMode?: MatrixMode;
|
|
617
408
|
};
|
|
618
409
|
pieChart: {
|
|
619
410
|
showExtraTreeDataContent: boolean;
|
|
620
411
|
};
|
|
412
|
+
problem: {
|
|
413
|
+
allowCommaDecimal: boolean;
|
|
414
|
+
};
|
|
415
|
+
getStarted: {
|
|
416
|
+
showSentEmailInfo: boolean;
|
|
417
|
+
};
|
|
621
418
|
firstLoginBooks: {
|
|
622
419
|
isLargeGrade: ((grade: number) => boolean) | null;
|
|
623
|
-
mergeHighSchoolGrades: boolean;
|
|
624
|
-
withGradeZero: boolean;
|
|
625
420
|
};
|
|
626
|
-
|
|
627
|
-
|
|
421
|
+
grades: {
|
|
422
|
+
showPrefix: boolean;
|
|
423
|
+
showOtherGrade: boolean;
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
428
|
+
date: {
|
|
429
|
+
use24HourFormat: boolean;
|
|
430
|
+
locale: DateLocale;
|
|
431
|
+
formats: {
|
|
432
|
+
full: DateFormat;
|
|
433
|
+
dayMonthYear: DateFormat;
|
|
434
|
+
dayMonth: DateFormat;
|
|
435
|
+
hoursMinutes: DateFormat;
|
|
436
|
+
fullWithSeconds: DateFormat;
|
|
437
|
+
};
|
|
628
438
|
};
|
|
629
|
-
problemCreator: ProblemCreatorConfig;
|
|
630
439
|
};
|
|
631
440
|
|
|
632
441
|
type AuthLocaleConfig<E> = {
|
|
@@ -647,9 +456,6 @@ type AuthLocaleConfig<E> = {
|
|
|
647
456
|
regionGroup: string;
|
|
648
457
|
navigatorLanguages: string[];
|
|
649
458
|
locale: Locale;
|
|
650
|
-
urls?: {
|
|
651
|
-
onboarding?: string;
|
|
652
|
-
};
|
|
653
459
|
};
|
|
654
460
|
|
|
655
461
|
type WebAdminLocaleConfig = {
|
|
@@ -661,52 +467,12 @@ type WebAdminLocaleConfig = {
|
|
|
661
467
|
apiRegion: ApiRegion;
|
|
662
468
|
};
|
|
663
469
|
|
|
664
|
-
type DateConfig = Readonly<{
|
|
665
|
-
use24HourFormat: boolean;
|
|
666
|
-
locale: string;
|
|
667
|
-
momentLocale: string;
|
|
668
|
-
formats: {
|
|
669
|
-
dayMonth: string;
|
|
670
|
-
dayMonthYear: string;
|
|
671
|
-
monthDayTime: string;
|
|
672
|
-
hoursMinutes: string;
|
|
673
|
-
full: string;
|
|
674
|
-
fullWithSeconds: string;
|
|
675
|
-
};
|
|
676
|
-
}>;
|
|
677
|
-
|
|
678
|
-
type GradesConfig = Readonly<{
|
|
679
|
-
primary: Partial<Record<PrimaryGrades, GradeData>>;
|
|
680
|
-
highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
|
|
681
|
-
treeGradeOffset?: number;
|
|
682
|
-
}>;
|
|
683
|
-
|
|
684
|
-
type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthLocaleConfig<E> & {
|
|
685
|
-
localizeCountryCode: string;
|
|
686
|
-
calendar: CalendarConfig;
|
|
687
|
-
};
|
|
688
|
-
|
|
689
|
-
declare enum MultiplicationSymbol {
|
|
690
|
-
CDOT = "CDOT",
|
|
691
|
-
TIMES = "TIMES"
|
|
692
|
-
}
|
|
693
|
-
|
|
694
470
|
type CommonLocaleConfig = Readonly<{
|
|
695
471
|
name: string;
|
|
696
472
|
languageName: string;
|
|
697
|
-
country: string;
|
|
698
473
|
languageHeader: string;
|
|
699
474
|
contentLocale: Locale;
|
|
700
475
|
shortCode: string;
|
|
701
|
-
date: DateConfig;
|
|
702
|
-
grades: GradesConfig;
|
|
703
|
-
numberFormatting: {
|
|
704
|
-
decimalSeparator: NumberDecimalSeparator;
|
|
705
|
-
groupingSeparator: NumberGroupingSeparator;
|
|
706
|
-
};
|
|
707
|
-
mathSymbols: {
|
|
708
|
-
multiplication: MultiplicationSymbol;
|
|
709
|
-
};
|
|
710
476
|
}>;
|
|
711
477
|
type LocalePreset = {
|
|
712
478
|
[Platform.STUDENTS_WEB]: {
|
|
@@ -725,18 +491,11 @@ type LocalePreset = {
|
|
|
725
491
|
[key in Locale]: WebAdminLocaleConfig;
|
|
726
492
|
};
|
|
727
493
|
[Platform.MOBILE]: {
|
|
728
|
-
[key in Locale]:
|
|
494
|
+
[key in Locale]: AuthLocaleConfig<MobileVars<SSOByLocale[key]>>;
|
|
729
495
|
};
|
|
730
496
|
};
|
|
731
497
|
type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
732
498
|
|
|
733
|
-
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
734
|
-
tree: {
|
|
735
|
-
lowestLevel: TreeLevel;
|
|
736
|
-
};
|
|
737
|
-
problemCreator: ProblemCreatorConfig;
|
|
738
|
-
};
|
|
739
|
-
|
|
740
499
|
type DevOverrides<P extends Platform> = {
|
|
741
500
|
[K in Locale]?: Partial<EnvironmentVars<P>>;
|
|
742
501
|
};
|
|
@@ -760,14 +519,6 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
760
519
|
private readonly setLocaleConfig;
|
|
761
520
|
readonly $envs: effector.StoreWritable<EnvironmentVars<P>>;
|
|
762
521
|
readonly $localeConfig: effector.StoreWritable<LocaleConfig<P, L>>;
|
|
763
|
-
readonly $localeFlags: effector.Store<{
|
|
764
|
-
isUS: boolean;
|
|
765
|
-
isSwedish: boolean;
|
|
766
|
-
isBritish: boolean;
|
|
767
|
-
isCanadian: boolean;
|
|
768
|
-
isScottish: boolean;
|
|
769
|
-
isGerman: boolean;
|
|
770
|
-
}>;
|
|
771
522
|
constructor(opts: ConfigOptions<P>);
|
|
772
523
|
private readonly syncConfigsStores;
|
|
773
524
|
readonly set: (props: SetProps<L>) => void;
|
|
@@ -775,14 +526,6 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
775
526
|
getLocaleConfig: () => LocaleConfig<P, L> & {
|
|
776
527
|
locale: L;
|
|
777
528
|
};
|
|
778
|
-
getLocaleFlags: () => {
|
|
779
|
-
isUS: boolean;
|
|
780
|
-
isSwedish: boolean;
|
|
781
|
-
isBritish: boolean;
|
|
782
|
-
isCanadian: boolean;
|
|
783
|
-
isScottish: boolean;
|
|
784
|
-
isGerman: boolean;
|
|
785
|
-
};
|
|
786
529
|
readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
|
|
787
530
|
readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
|
|
788
531
|
readonly getPresets: () => {
|
|
@@ -791,4 +534,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
791
534
|
};
|
|
792
535
|
}
|
|
793
536
|
|
|
794
|
-
export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset,
|
|
537
|
+
export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, QRCodeSize, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
|