@magmamath/frontend-config 1.0.24-rc.21 → 1.0.24-rc.23
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 +598 -84
- package/dist/index.d.ts +598 -84
- package/dist/index.js +3514 -678
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3471 -674
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
1
|
+
import { ComponentType, ReactNode } from 'react';
|
|
2
2
|
import * as effector from 'effector';
|
|
3
3
|
|
|
4
4
|
declare enum DateFormat {
|
|
@@ -88,6 +88,7 @@ declare enum LoginSource {
|
|
|
88
88
|
MY_LOGIN = 9
|
|
89
89
|
}
|
|
90
90
|
declare enum SSO {
|
|
91
|
+
APPLE = "APPLE",
|
|
91
92
|
GOOGLE = "GOOGLE",
|
|
92
93
|
MICROSOFT = "MICROSOFT",
|
|
93
94
|
CLEVER = "CLEVER",
|
|
@@ -103,6 +104,11 @@ declare enum ApiRegion {
|
|
|
103
104
|
MAIN = "MAIN",
|
|
104
105
|
CANADA = "CANADA"
|
|
105
106
|
}
|
|
107
|
+
declare enum QRCodeSize {
|
|
108
|
+
DEFAULT = "default",
|
|
109
|
+
MEDIUM = "medium",
|
|
110
|
+
LARGE = "large"
|
|
111
|
+
}
|
|
106
112
|
|
|
107
113
|
declare enum MatrixMode {
|
|
108
114
|
SKILL = "SKILL",
|
|
@@ -148,10 +154,79 @@ type GradeData = {
|
|
|
148
154
|
};
|
|
149
155
|
type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
|
|
150
156
|
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;
|
|
151
|
-
type HighSchoolGrades = 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;
|
|
157
|
+
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;
|
|
152
158
|
|
|
153
159
|
type IconProps = {
|
|
154
160
|
size?: number;
|
|
161
|
+
color?: string;
|
|
162
|
+
extraColor?: string;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
type SSOConfig<E> = Readonly<{
|
|
166
|
+
name: string;
|
|
167
|
+
icon: ComponentType<IconProps>;
|
|
168
|
+
type: SSO;
|
|
169
|
+
loginSource: LoginSource;
|
|
170
|
+
ownUrl?: boolean;
|
|
171
|
+
getUrl: (envs: E) => string;
|
|
172
|
+
}>;
|
|
173
|
+
|
|
174
|
+
type RegionSpecificVars = {
|
|
175
|
+
API_URL: string;
|
|
176
|
+
AUTH_WEB_URL: string;
|
|
177
|
+
CDN_HOST: string;
|
|
178
|
+
DISTRICT_WEB_URL: string;
|
|
179
|
+
LOGGLY_TAG: string;
|
|
180
|
+
MAGMAMATH_URL: string;
|
|
181
|
+
SOCKET_URL: string;
|
|
182
|
+
STUDENTS_WEB_URL: string;
|
|
183
|
+
TEACHERS_WEB_URL: string;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
type StudentsWebCommon = {
|
|
187
|
+
GOOGLE_API_KEY: string;
|
|
188
|
+
DESMOS_API_KEY: string;
|
|
189
|
+
LOGGLY_CUSTOMER_TOKEN: string;
|
|
190
|
+
MYSCRIPT_APPLICATION_KEY: string;
|
|
191
|
+
MYSCRIPT_HMAC_KEY: string;
|
|
192
|
+
MYSCRIPT_HOST: string;
|
|
193
|
+
MYSCRIPT_SOCKET_KEY: string;
|
|
194
|
+
MYSCRIPT_REST_APP_KEY: string;
|
|
195
|
+
MYSCRIPT_REST_HMAC_KEY: string;
|
|
196
|
+
};
|
|
197
|
+
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
198
|
+
type StudentsWebVarsPreset = {
|
|
199
|
+
[key in Locale]: {
|
|
200
|
+
[key in Environment]: StudentsWebVars;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
type TeachersWebCommon = {
|
|
205
|
+
MYSCRIPT_HOST: string;
|
|
206
|
+
MYSCRIPT_REST_APP_KEY: string;
|
|
207
|
+
MYSCRIPT_REST_HMAC_KEY: string;
|
|
208
|
+
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
209
|
+
INTERCOM_APP_ID: string;
|
|
210
|
+
CLARITY_PROJECT_ID: string;
|
|
211
|
+
LOGGLY_CUSTOMER_TOKEN: string;
|
|
212
|
+
};
|
|
213
|
+
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
214
|
+
type TeachersWebVarsPreset = {
|
|
215
|
+
[key in Locale]: {
|
|
216
|
+
[key in Environment]: TeachersWebVars;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
type DistrictCommon = {
|
|
221
|
+
INTERCOM_APP_ID: string;
|
|
222
|
+
CLARITY_PROJECT_ID: string;
|
|
223
|
+
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
224
|
+
};
|
|
225
|
+
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
226
|
+
type DistrictWebVarsPreset = {
|
|
227
|
+
[key in Locale]: {
|
|
228
|
+
[key in Environment]: DistrictDashboardVars;
|
|
229
|
+
};
|
|
155
230
|
};
|
|
156
231
|
|
|
157
232
|
type SSO_UK = {
|
|
@@ -191,18 +266,6 @@ type Prettify<T> = T extends Function ? T : {
|
|
|
191
266
|
[K in keyof T]: T[K];
|
|
192
267
|
};
|
|
193
268
|
|
|
194
|
-
type RegionSpecificVars = {
|
|
195
|
-
API_URL: string;
|
|
196
|
-
AUTH_WEB_URL: string;
|
|
197
|
-
CDN_HOST: string;
|
|
198
|
-
DISTRICT_WEB_URL: string;
|
|
199
|
-
LOGGLY_TAG: string;
|
|
200
|
-
MAGMAMATH_URL: string;
|
|
201
|
-
SOCKET_URL: string;
|
|
202
|
-
STUDENTS_WEB_URL: string;
|
|
203
|
-
TEACHERS_WEB_URL: string;
|
|
204
|
-
};
|
|
205
|
-
|
|
206
269
|
type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
|
|
207
270
|
type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
|
|
208
271
|
TOS_URL: string;
|
|
@@ -230,61 +293,6 @@ type AuthWebVarsPreset = {
|
|
|
230
293
|
};
|
|
231
294
|
};
|
|
232
295
|
|
|
233
|
-
type SSOConfig<T extends SSOVariant> = Readonly<{
|
|
234
|
-
name: string;
|
|
235
|
-
icon: ComponentType<IconProps>;
|
|
236
|
-
type: SSO;
|
|
237
|
-
loginSource: LoginSource;
|
|
238
|
-
getUrl: (envs: AuthWebVars<T>) => string;
|
|
239
|
-
ownUrl?: boolean;
|
|
240
|
-
}>;
|
|
241
|
-
|
|
242
|
-
type StudentsWebCommon = {
|
|
243
|
-
GOOGLE_API_KEY: string;
|
|
244
|
-
DESMOS_API_KEY: string;
|
|
245
|
-
LOGGLY_CUSTOMER_TOKEN: string;
|
|
246
|
-
MYSCRIPT_APPLICATION_KEY: string;
|
|
247
|
-
MYSCRIPT_HMAC_KEY: string;
|
|
248
|
-
MYSCRIPT_HOST: string;
|
|
249
|
-
MYSCRIPT_SOCKET_KEY: string;
|
|
250
|
-
MYSCRIPT_REST_APP_KEY: string;
|
|
251
|
-
MYSCRIPT_REST_HMAC_KEY: string;
|
|
252
|
-
};
|
|
253
|
-
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
254
|
-
type StudentsWebVarsPreset = {
|
|
255
|
-
[key in Locale]: {
|
|
256
|
-
[key in Environment]: StudentsWebVars;
|
|
257
|
-
};
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
type TeachersWebCommon = {
|
|
261
|
-
MYSCRIPT_HOST: string;
|
|
262
|
-
MYSCRIPT_REST_APP_KEY: string;
|
|
263
|
-
MYSCRIPT_REST_HMAC_KEY: string;
|
|
264
|
-
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
265
|
-
INTERCOM_APP_ID: string;
|
|
266
|
-
CLARITY_PROJECT_ID: string;
|
|
267
|
-
LOGGLY_CUSTOMER_TOKEN: string;
|
|
268
|
-
};
|
|
269
|
-
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
270
|
-
type TeachersWebVarsPreset = {
|
|
271
|
-
[key in Locale]: {
|
|
272
|
-
[key in Environment]: TeachersWebVars;
|
|
273
|
-
};
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
type DistrictCommon = {
|
|
277
|
-
INTERCOM_APP_ID: string;
|
|
278
|
-
CLARITY_PROJECT_ID: string;
|
|
279
|
-
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
280
|
-
};
|
|
281
|
-
type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
|
|
282
|
-
type DistrictWebVarsPreset = {
|
|
283
|
-
[key in Locale]: {
|
|
284
|
-
[key in Environment]: DistrictDashboardVars;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
|
|
288
296
|
type MobileCommon = {
|
|
289
297
|
DESMOS_API_KEY: string;
|
|
290
298
|
USER_AGENT: string;
|
|
@@ -295,13 +303,19 @@ type MobileCommon = {
|
|
|
295
303
|
MYSCRIPT_SOCKET_KEY: string;
|
|
296
304
|
MYSCRIPT_REST_APP_KEY: string;
|
|
297
305
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
306
|
+
GOOGLE_API_KEY: string;
|
|
307
|
+
GOOGLE_TEXT_TO_SPEECH_URL: string;
|
|
308
|
+
GOOGLE_TRANSLATE_URL: string;
|
|
309
|
+
SIGN_UP_BOOKING_ONBOARDING: string;
|
|
298
310
|
};
|
|
299
311
|
type MobileBaseVars = {
|
|
300
312
|
TEACHERS_WEB_URL: string;
|
|
313
|
+
AUTH_WEB_URL: string;
|
|
301
314
|
API_URL: string;
|
|
302
315
|
CDN_HOST: string;
|
|
303
316
|
SOCKET_URL: string;
|
|
304
317
|
LOGGLY_TAG: string;
|
|
318
|
+
PROBLEM_CREATOR_URL: string;
|
|
305
319
|
} & MobileCommon;
|
|
306
320
|
type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
|
|
307
321
|
type MobileVarsPreset = {
|
|
@@ -355,6 +369,108 @@ type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
|
|
|
355
369
|
|
|
356
370
|
declare function buildTargetToEnvironment(buildTarget: PlatformBuildTarget): Environment;
|
|
357
371
|
|
|
372
|
+
declare const enum KeyboardType {
|
|
373
|
+
AlgebraAdvanced = "AlgebraAdvanced",
|
|
374
|
+
Basic = "Basic",
|
|
375
|
+
BasicPlus = "BasicPlus",
|
|
376
|
+
BasicPlusMobile = "BasicPlusMobile",
|
|
377
|
+
BasicTime = "BasicTime",
|
|
378
|
+
BasicCurrency = "BasicCurrency",
|
|
379
|
+
BasicUnits = "BasicUnits",
|
|
380
|
+
BasicPlusPlus = "BasicPlusPlus",
|
|
381
|
+
BasicPlusPlusMobile = "BasicPlusPlusMobile",
|
|
382
|
+
Numpad = "Numpad",
|
|
383
|
+
Underlined = "Underlined"
|
|
384
|
+
}
|
|
385
|
+
declare enum KeyboardUnitsGroupType {
|
|
386
|
+
LENGTH = "length",
|
|
387
|
+
AREA = "area",
|
|
388
|
+
VOLUME = "volume",
|
|
389
|
+
WEIGHT = "weight",
|
|
390
|
+
TIME = "time"
|
|
391
|
+
}
|
|
392
|
+
declare const DEFAULT_KEY_ICON_PROPS: {
|
|
393
|
+
readonly size: 16;
|
|
394
|
+
readonly color: "#4d4d63";
|
|
395
|
+
};
|
|
396
|
+
declare const DEFAULT_TEXT_STYLE: {
|
|
397
|
+
readonly fontSize: 14;
|
|
398
|
+
readonly fontWeight: 700;
|
|
399
|
+
};
|
|
400
|
+
declare const IS_WEB = true;
|
|
401
|
+
declare const IS_MOBILE = false;
|
|
402
|
+
declare const STYLE_PRESETS: {
|
|
403
|
+
SMALL: {
|
|
404
|
+
button: {
|
|
405
|
+
width: number;
|
|
406
|
+
};
|
|
407
|
+
container: {
|
|
408
|
+
flexBasis: number;
|
|
409
|
+
} | undefined;
|
|
410
|
+
text: {
|
|
411
|
+
readonly fontSize: 14;
|
|
412
|
+
readonly fontWeight: 700;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
MEDIUM: {
|
|
416
|
+
button: {
|
|
417
|
+
width: number;
|
|
418
|
+
};
|
|
419
|
+
container: {
|
|
420
|
+
flexBasis: number;
|
|
421
|
+
} | undefined;
|
|
422
|
+
text: {
|
|
423
|
+
readonly fontSize: 14;
|
|
424
|
+
readonly fontWeight: 700;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
427
|
+
LARGE: {
|
|
428
|
+
button: {
|
|
429
|
+
width: number;
|
|
430
|
+
};
|
|
431
|
+
container: {
|
|
432
|
+
flexBasis: number;
|
|
433
|
+
} | undefined;
|
|
434
|
+
text: {
|
|
435
|
+
readonly fontSize: 14;
|
|
436
|
+
readonly fontWeight: 700;
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
XL: {
|
|
440
|
+
button: {
|
|
441
|
+
width: number;
|
|
442
|
+
};
|
|
443
|
+
container: {
|
|
444
|
+
flexBasis: number;
|
|
445
|
+
} | undefined;
|
|
446
|
+
text: {
|
|
447
|
+
readonly fontSize: 14;
|
|
448
|
+
readonly fontWeight: 700;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
type MathOperatorsGroup = Record<string, KeyboardKey>;
|
|
454
|
+
type KeyboardKey = {
|
|
455
|
+
icon?: ReactNode;
|
|
456
|
+
mathliveValue: string;
|
|
457
|
+
katexValue: string;
|
|
458
|
+
isSpecialSymbol?: boolean;
|
|
459
|
+
mathQuillValue?: string;
|
|
460
|
+
spreadsheetValue?: string;
|
|
461
|
+
label?: string;
|
|
462
|
+
style?: Record<string, any>;
|
|
463
|
+
};
|
|
464
|
+
type KeyboardGroup = {
|
|
465
|
+
keys: KeyboardKey[];
|
|
466
|
+
numOfRows?: number;
|
|
467
|
+
};
|
|
468
|
+
type KeyboardGroups = Record<string, KeyboardGroup>;
|
|
469
|
+
type KeyboardRowsGroup = {
|
|
470
|
+
keys: KeyboardKey[][];
|
|
471
|
+
};
|
|
472
|
+
type KeyboardRowsGroups = Record<string, KeyboardRowsGroup>;
|
|
473
|
+
|
|
358
474
|
type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
359
475
|
textFormatting: {
|
|
360
476
|
replaceCommaWithSpace: boolean;
|
|
@@ -399,6 +515,13 @@ type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
|
399
515
|
smartEval: {
|
|
400
516
|
language: string;
|
|
401
517
|
};
|
|
518
|
+
drawboard: {
|
|
519
|
+
basicManipulativesMaxGrade: number;
|
|
520
|
+
};
|
|
521
|
+
keyboard: {
|
|
522
|
+
main: Record<KeyboardType, KeyboardGroup>;
|
|
523
|
+
units: Record<KeyboardUnitsGroupType, KeyboardRowsGroup>;
|
|
524
|
+
};
|
|
402
525
|
};
|
|
403
526
|
|
|
404
527
|
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
@@ -440,6 +563,9 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
|
440
563
|
useHighSchoolGrades: boolean;
|
|
441
564
|
withGradeZero: boolean;
|
|
442
565
|
};
|
|
566
|
+
gradesModal: {
|
|
567
|
+
withOtherOption: boolean;
|
|
568
|
+
};
|
|
443
569
|
progressStats: {
|
|
444
570
|
forceHSGrades: boolean;
|
|
445
571
|
};
|
|
@@ -451,18 +577,18 @@ type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
|
451
577
|
};
|
|
452
578
|
};
|
|
453
579
|
|
|
454
|
-
type
|
|
580
|
+
type AuthLocaleConfig<E> = {
|
|
455
581
|
path: string;
|
|
456
582
|
shortCode: string;
|
|
457
583
|
icon: ComponentType<IconProps>;
|
|
458
584
|
sources: {
|
|
459
585
|
signUp: {
|
|
460
|
-
list: SSOConfig<
|
|
586
|
+
list: SSOConfig<E>[];
|
|
461
587
|
};
|
|
462
588
|
signIn: {
|
|
463
589
|
withOnboarding: boolean;
|
|
464
|
-
|
|
465
|
-
list: SSOConfig<
|
|
590
|
+
qrCodeSize: QRCodeSize;
|
|
591
|
+
list: SSOConfig<E>[];
|
|
466
592
|
};
|
|
467
593
|
};
|
|
468
594
|
isPrimaryRegion: boolean;
|
|
@@ -514,19 +640,414 @@ type LocalePreset = {
|
|
|
514
640
|
[key in Locale]: DistrictLocaleConfig;
|
|
515
641
|
};
|
|
516
642
|
[Platform.AUTH_WEB]: {
|
|
517
|
-
[key in Locale]:
|
|
643
|
+
[key in Locale]: AuthLocaleConfig<AuthWebVars<SSOByLocale[key]>>;
|
|
518
644
|
};
|
|
519
645
|
[Platform.WEB_ADMIN]: {
|
|
520
646
|
[key in Locale]: WebAdminLocaleConfig;
|
|
521
647
|
};
|
|
522
648
|
[Platform.MOBILE]: {
|
|
523
|
-
[key in Locale]:
|
|
649
|
+
[key in Locale]: AuthLocaleConfig<MobileVars<SSOByLocale[key]>>;
|
|
524
650
|
};
|
|
525
651
|
};
|
|
526
652
|
type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
527
653
|
|
|
528
654
|
type DistrictLocaleConfig = CommonLocaleConfig;
|
|
529
655
|
|
|
656
|
+
declare const ALGEBRA: KeyboardGroup;
|
|
657
|
+
|
|
658
|
+
declare const BASIC: KeyboardGroups;
|
|
659
|
+
|
|
660
|
+
declare const BASIC_PLUS: KeyboardGroups;
|
|
661
|
+
|
|
662
|
+
declare const BASIC_PLUS_PLUS: KeyboardGroups;
|
|
663
|
+
|
|
664
|
+
declare const CURRENCY: Record<string, KeyboardGroup>;
|
|
665
|
+
|
|
666
|
+
declare const NUMPAD: KeyboardGroups;
|
|
667
|
+
|
|
668
|
+
declare const TIME: KeyboardGroups;
|
|
669
|
+
|
|
670
|
+
declare const UNDERLINED: KeyboardGroup;
|
|
671
|
+
|
|
672
|
+
declare const LENGTH: KeyboardRowsGroups;
|
|
673
|
+
declare const AREA: KeyboardRowsGroups;
|
|
674
|
+
declare const VOLUME: KeyboardRowsGroups;
|
|
675
|
+
declare const WEIGHT: KeyboardRowsGroups;
|
|
676
|
+
declare const TIME_UNITS: KeyboardRowsGroups;
|
|
677
|
+
|
|
678
|
+
declare const MATH_BASIC_OPERATORS: MathOperatorsGroup;
|
|
679
|
+
|
|
680
|
+
declare const MATH_INTEGRALS_AND_DERIVATIVES: MathOperatorsGroup;
|
|
681
|
+
|
|
682
|
+
declare const MATH_GEOMETRY_SYMBOLS: MathOperatorsGroup;
|
|
683
|
+
|
|
684
|
+
declare const MATH_SPECIAL_OPERATORS: MathOperatorsGroup;
|
|
685
|
+
|
|
686
|
+
declare const MATH_SYMBOLS: MathOperatorsGroup;
|
|
687
|
+
|
|
688
|
+
declare const MATH_TEXT_SYMBOLS: MathOperatorsGroup;
|
|
689
|
+
|
|
690
|
+
declare const MATH_BASIC_TRIGONOMETRIC_FUNCTIONS: MathOperatorsGroup;
|
|
691
|
+
declare const MATH_INVERSE_TRIGONOMETRIC_FUNCTIONS: MathOperatorsGroup;
|
|
692
|
+
|
|
693
|
+
declare const MATH_CURRENCY_UNITS: MathOperatorsGroup;
|
|
694
|
+
declare const MATH_LENGTH_UNITS: MathOperatorsGroup;
|
|
695
|
+
declare const MATH_AREA_UNITS: MathOperatorsGroup;
|
|
696
|
+
declare const MATH_VOLUME_UNITS: {
|
|
697
|
+
readonly CUBIC_KILOMETER: {
|
|
698
|
+
readonly label: "km³";
|
|
699
|
+
readonly mathliveValue: "\\mathrm{km}^3";
|
|
700
|
+
readonly katexValue: "km^3";
|
|
701
|
+
readonly mathQuillValue: "km^{3}";
|
|
702
|
+
readonly style: {
|
|
703
|
+
button: {
|
|
704
|
+
width: number;
|
|
705
|
+
};
|
|
706
|
+
container: {
|
|
707
|
+
flexBasis: number;
|
|
708
|
+
} | undefined;
|
|
709
|
+
text: {
|
|
710
|
+
readonly fontSize: 14;
|
|
711
|
+
readonly fontWeight: 700;
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly CUBIC_METER: {
|
|
716
|
+
readonly label: "m³";
|
|
717
|
+
readonly mathliveValue: "\\mathrm{m}^3";
|
|
718
|
+
readonly katexValue: "m^3";
|
|
719
|
+
readonly mathQuillValue: "m^{3}";
|
|
720
|
+
readonly style: {
|
|
721
|
+
button: {
|
|
722
|
+
width: number;
|
|
723
|
+
};
|
|
724
|
+
container: {
|
|
725
|
+
flexBasis: number;
|
|
726
|
+
} | undefined;
|
|
727
|
+
text: {
|
|
728
|
+
readonly fontSize: 14;
|
|
729
|
+
readonly fontWeight: 700;
|
|
730
|
+
};
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
readonly CUBIC_DECIMETER: {
|
|
734
|
+
readonly label: "dm³";
|
|
735
|
+
readonly mathliveValue: "\\mathrm{dm}^3";
|
|
736
|
+
readonly katexValue: "dm^3";
|
|
737
|
+
readonly mathQuillValue: "dm^{3}";
|
|
738
|
+
readonly style: {
|
|
739
|
+
button: {
|
|
740
|
+
width: number;
|
|
741
|
+
};
|
|
742
|
+
container: {
|
|
743
|
+
flexBasis: number;
|
|
744
|
+
} | undefined;
|
|
745
|
+
text: {
|
|
746
|
+
readonly fontSize: 14;
|
|
747
|
+
readonly fontWeight: 700;
|
|
748
|
+
};
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
readonly CUBIC_CENTIMETER: {
|
|
752
|
+
readonly label: "cm³";
|
|
753
|
+
readonly mathliveValue: "\\mathrm{cm}^3";
|
|
754
|
+
readonly katexValue: "cm^3";
|
|
755
|
+
readonly mathQuillValue: "cm^{3}";
|
|
756
|
+
readonly style: {
|
|
757
|
+
button: {
|
|
758
|
+
width: number;
|
|
759
|
+
};
|
|
760
|
+
container: {
|
|
761
|
+
flexBasis: number;
|
|
762
|
+
} | undefined;
|
|
763
|
+
text: {
|
|
764
|
+
readonly fontSize: 14;
|
|
765
|
+
readonly fontWeight: 700;
|
|
766
|
+
};
|
|
767
|
+
};
|
|
768
|
+
};
|
|
769
|
+
readonly CUBIC_MILLIMETER: {
|
|
770
|
+
readonly label: "mm³";
|
|
771
|
+
readonly mathliveValue: "\\mathrm{mm}^3";
|
|
772
|
+
readonly katexValue: "mm^3";
|
|
773
|
+
readonly mathQuillValue: "mm^{3}";
|
|
774
|
+
readonly style: {
|
|
775
|
+
button: {
|
|
776
|
+
width: number;
|
|
777
|
+
};
|
|
778
|
+
container: {
|
|
779
|
+
flexBasis: number;
|
|
780
|
+
} | undefined;
|
|
781
|
+
text: {
|
|
782
|
+
readonly fontSize: 14;
|
|
783
|
+
readonly fontWeight: 700;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
readonly CUBIC_INCH: {
|
|
788
|
+
readonly label: "in³";
|
|
789
|
+
readonly mathliveValue: "\\mathrm{in}^3";
|
|
790
|
+
readonly katexValue: "in^3";
|
|
791
|
+
readonly mathQuillValue: "in^{3}";
|
|
792
|
+
readonly style: {
|
|
793
|
+
button: {
|
|
794
|
+
width: number;
|
|
795
|
+
};
|
|
796
|
+
container: {
|
|
797
|
+
flexBasis: number;
|
|
798
|
+
} | undefined;
|
|
799
|
+
text: {
|
|
800
|
+
readonly fontSize: 14;
|
|
801
|
+
readonly fontWeight: 700;
|
|
802
|
+
};
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
readonly CUBIC_FOOT: {
|
|
806
|
+
readonly label: "ft³";
|
|
807
|
+
readonly mathliveValue: "\\mathrm{ft}^3";
|
|
808
|
+
readonly katexValue: "ft^3";
|
|
809
|
+
readonly mathQuillValue: "ft^{3}";
|
|
810
|
+
readonly style: {
|
|
811
|
+
button: {
|
|
812
|
+
width: number;
|
|
813
|
+
};
|
|
814
|
+
container: {
|
|
815
|
+
flexBasis: number;
|
|
816
|
+
} | undefined;
|
|
817
|
+
text: {
|
|
818
|
+
readonly fontSize: 14;
|
|
819
|
+
readonly fontWeight: 700;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
readonly CUBIC_MILE: {
|
|
824
|
+
readonly label: "mi³";
|
|
825
|
+
readonly mathliveValue: "\\mathrm{mi}^3";
|
|
826
|
+
readonly katexValue: "mi^3";
|
|
827
|
+
readonly mathQuillValue: "mi^{3}";
|
|
828
|
+
readonly style: {
|
|
829
|
+
button: {
|
|
830
|
+
width: number;
|
|
831
|
+
};
|
|
832
|
+
container: {
|
|
833
|
+
flexBasis: number;
|
|
834
|
+
} | undefined;
|
|
835
|
+
text: {
|
|
836
|
+
readonly fontSize: 14;
|
|
837
|
+
readonly fontWeight: 700;
|
|
838
|
+
};
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
readonly CUBIC_YARD: {
|
|
842
|
+
readonly label: "yd³";
|
|
843
|
+
readonly mathliveValue: "\\mathrm{yd}^3";
|
|
844
|
+
readonly katexValue: "yd^3";
|
|
845
|
+
readonly mathQuillValue: "yd^{3}";
|
|
846
|
+
readonly style: {
|
|
847
|
+
button: {
|
|
848
|
+
width: number;
|
|
849
|
+
};
|
|
850
|
+
container: {
|
|
851
|
+
flexBasis: number;
|
|
852
|
+
} | undefined;
|
|
853
|
+
text: {
|
|
854
|
+
readonly fontSize: 14;
|
|
855
|
+
readonly fontWeight: 700;
|
|
856
|
+
};
|
|
857
|
+
};
|
|
858
|
+
};
|
|
859
|
+
readonly MILLILITER: {
|
|
860
|
+
readonly label: "ml";
|
|
861
|
+
readonly mathliveValue: "\\mathrm{mL}";
|
|
862
|
+
readonly katexValue: "ml";
|
|
863
|
+
readonly style: {
|
|
864
|
+
button: {
|
|
865
|
+
width: number;
|
|
866
|
+
};
|
|
867
|
+
container: {
|
|
868
|
+
flexBasis: number;
|
|
869
|
+
} | undefined;
|
|
870
|
+
text: {
|
|
871
|
+
readonly fontSize: 14;
|
|
872
|
+
readonly fontWeight: 700;
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
readonly LITER: {
|
|
877
|
+
readonly label: "L";
|
|
878
|
+
readonly mathliveValue: "\\mathrm{L}";
|
|
879
|
+
readonly katexValue: "L";
|
|
880
|
+
readonly style: {
|
|
881
|
+
button: {
|
|
882
|
+
width: number;
|
|
883
|
+
};
|
|
884
|
+
container: {
|
|
885
|
+
flexBasis: number;
|
|
886
|
+
} | undefined;
|
|
887
|
+
text: {
|
|
888
|
+
readonly fontSize: 14;
|
|
889
|
+
readonly fontWeight: 700;
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
readonly MILLILITER_SE: {
|
|
894
|
+
readonly label: "ml";
|
|
895
|
+
readonly mathliveValue: "\\mathrm{ml}";
|
|
896
|
+
readonly katexValue: "ml";
|
|
897
|
+
readonly style: {
|
|
898
|
+
button: {
|
|
899
|
+
width: number;
|
|
900
|
+
};
|
|
901
|
+
container: {
|
|
902
|
+
flexBasis: number;
|
|
903
|
+
} | undefined;
|
|
904
|
+
text: {
|
|
905
|
+
readonly fontSize: 14;
|
|
906
|
+
readonly fontWeight: 700;
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
readonly LITER_SE: {
|
|
911
|
+
readonly label: "l";
|
|
912
|
+
readonly mathliveValue: "\\mathrm{l}";
|
|
913
|
+
readonly katexValue: "l";
|
|
914
|
+
readonly style: {
|
|
915
|
+
button: {
|
|
916
|
+
width: number;
|
|
917
|
+
};
|
|
918
|
+
container: {
|
|
919
|
+
flexBasis: number;
|
|
920
|
+
} | undefined;
|
|
921
|
+
text: {
|
|
922
|
+
readonly fontSize: 14;
|
|
923
|
+
readonly fontWeight: 700;
|
|
924
|
+
};
|
|
925
|
+
};
|
|
926
|
+
};
|
|
927
|
+
readonly DL: {
|
|
928
|
+
readonly label: "dl";
|
|
929
|
+
readonly mathliveValue: "\\mathrm{dl}";
|
|
930
|
+
readonly katexValue: "dl";
|
|
931
|
+
readonly style: {
|
|
932
|
+
button: {
|
|
933
|
+
width: number;
|
|
934
|
+
};
|
|
935
|
+
container: {
|
|
936
|
+
flexBasis: number;
|
|
937
|
+
} | undefined;
|
|
938
|
+
text: {
|
|
939
|
+
readonly fontSize: 14;
|
|
940
|
+
readonly fontWeight: 700;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
readonly CUP: {
|
|
945
|
+
readonly label: "cup";
|
|
946
|
+
readonly mathliveValue: "\\mathrm{cup}";
|
|
947
|
+
readonly katexValue: "cup";
|
|
948
|
+
readonly mathQuillValue: "\\cup";
|
|
949
|
+
readonly style: {
|
|
950
|
+
button: {
|
|
951
|
+
width: number;
|
|
952
|
+
};
|
|
953
|
+
container: {
|
|
954
|
+
flexBasis: number;
|
|
955
|
+
} | undefined;
|
|
956
|
+
text: {
|
|
957
|
+
readonly fontSize: 14;
|
|
958
|
+
readonly fontWeight: 700;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
readonly GAL: {
|
|
963
|
+
readonly label: "gal";
|
|
964
|
+
readonly mathliveValue: "\\mathrm{gal}";
|
|
965
|
+
readonly katexValue: "gal";
|
|
966
|
+
readonly style: {
|
|
967
|
+
button: {
|
|
968
|
+
width: number;
|
|
969
|
+
};
|
|
970
|
+
container: {
|
|
971
|
+
flexBasis: number;
|
|
972
|
+
} | undefined;
|
|
973
|
+
text: {
|
|
974
|
+
readonly fontSize: 14;
|
|
975
|
+
readonly fontWeight: 700;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
readonly PINT: {
|
|
980
|
+
readonly label: "pt";
|
|
981
|
+
readonly mathliveValue: "\\mathrm{pt}";
|
|
982
|
+
readonly katexValue: "pt";
|
|
983
|
+
readonly style: {
|
|
984
|
+
button: {
|
|
985
|
+
width: number;
|
|
986
|
+
};
|
|
987
|
+
container: {
|
|
988
|
+
flexBasis: number;
|
|
989
|
+
} | undefined;
|
|
990
|
+
text: {
|
|
991
|
+
readonly fontSize: 14;
|
|
992
|
+
readonly fontWeight: 700;
|
|
993
|
+
};
|
|
994
|
+
};
|
|
995
|
+
};
|
|
996
|
+
readonly QUART: {
|
|
997
|
+
readonly label: "qt";
|
|
998
|
+
readonly mathliveValue: "\\mathrm{qt}";
|
|
999
|
+
readonly katexValue: "qt";
|
|
1000
|
+
readonly style: {
|
|
1001
|
+
button: {
|
|
1002
|
+
width: number;
|
|
1003
|
+
};
|
|
1004
|
+
container: {
|
|
1005
|
+
flexBasis: number;
|
|
1006
|
+
} | undefined;
|
|
1007
|
+
text: {
|
|
1008
|
+
readonly fontSize: 14;
|
|
1009
|
+
readonly fontWeight: 700;
|
|
1010
|
+
};
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
readonly FLOZ: {
|
|
1014
|
+
readonly label: "floz";
|
|
1015
|
+
readonly mathliveValue: "\\mathrm{floz}";
|
|
1016
|
+
readonly katexValue: "floz";
|
|
1017
|
+
readonly style: {
|
|
1018
|
+
button: {
|
|
1019
|
+
width: number;
|
|
1020
|
+
};
|
|
1021
|
+
container: {
|
|
1022
|
+
flexBasis: number;
|
|
1023
|
+
} | undefined;
|
|
1024
|
+
text: {
|
|
1025
|
+
readonly fontSize: 14;
|
|
1026
|
+
readonly fontWeight: 700;
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
readonly CL: {
|
|
1031
|
+
readonly label: "cl";
|
|
1032
|
+
readonly mathliveValue: "\\mathrm{cl}";
|
|
1033
|
+
readonly katexValue: "cl";
|
|
1034
|
+
readonly style: {
|
|
1035
|
+
button: {
|
|
1036
|
+
width: number;
|
|
1037
|
+
};
|
|
1038
|
+
container: {
|
|
1039
|
+
flexBasis: number;
|
|
1040
|
+
} | undefined;
|
|
1041
|
+
text: {
|
|
1042
|
+
readonly fontSize: 14;
|
|
1043
|
+
readonly fontWeight: 700;
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
declare const MATH_WEIGHT_UNITS: MathOperatorsGroup;
|
|
1049
|
+
declare const MATH_TIME_UNITS: MathOperatorsGroup;
|
|
1050
|
+
|
|
530
1051
|
type DevOverrides<P extends Platform> = {
|
|
531
1052
|
[K in Locale]?: Partial<EnvironmentVars<P>>;
|
|
532
1053
|
};
|
|
@@ -560,16 +1081,9 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
560
1081
|
readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
|
|
561
1082
|
readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
|
|
562
1083
|
readonly getPresets: () => {
|
|
563
|
-
envPreset:
|
|
564
|
-
STUDENTS: StudentsWebVarsPreset;
|
|
565
|
-
TEACHERS: TeachersWebVarsPreset;
|
|
566
|
-
DISTRICT: DistrictWebVarsPreset;
|
|
567
|
-
AUTH_WEB: AuthWebVarsPreset;
|
|
568
|
-
WEB_ADMIN: WebAdminVarsPreset;
|
|
569
|
-
MOBILE: MobileVarsPreset;
|
|
570
|
-
}>;
|
|
1084
|
+
envPreset: any;
|
|
571
1085
|
localePreset: LocalePreset;
|
|
572
1086
|
};
|
|
573
1087
|
}
|
|
574
1088
|
|
|
575
|
-
export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, type CommonGrades, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, 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 TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
|
|
1089
|
+
export { ALGEBRA, AREA, ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, BASIC, BASIC_PLUS, BASIC_PLUS_PLUS, CURRENCY, type CommonGrades, DEFAULT_KEY_ICON_PROPS, DEFAULT_TEXT_STYLE, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Grade, type GradeData, type HighSchoolGrades, IS_MOBILE, IS_WEB, type KeyboardGroup, type KeyboardGroups, type KeyboardKey, type KeyboardRowsGroup, type KeyboardRowsGroups, KeyboardType, KeyboardUnitsGroupType, LENGTH, Locale, LoginSource, MATH_AREA_UNITS, MATH_BASIC_OPERATORS, MATH_BASIC_TRIGONOMETRIC_FUNCTIONS, MATH_CURRENCY_UNITS, MATH_GEOMETRY_SYMBOLS, MATH_INTEGRALS_AND_DERIVATIVES, MATH_INVERSE_TRIGONOMETRIC_FUNCTIONS, MATH_LENGTH_UNITS, MATH_SPECIAL_OPERATORS, MATH_SYMBOLS, MATH_TEXT_SYMBOLS, MATH_TIME_UNITS, MATH_VOLUME_UNITS, MATH_WEIGHT_UNITS, type MathOperatorsGroup, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, NUMPAD, Platform, PlatformBuildTarget, type PrimaryGrades, QRCodeSize, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, STYLE_PRESETS, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TIME, TIME_UNITS, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, UNDERLINED, VOLUME, WEIGHT, buildTargetToEnvironment };
|