@magmamath/frontend-config 1.7.0-rc.0 → 1.7.0-rc.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/{common.constants-CjiyQMVZ.d.mts → common.constants-Dd81SRrq.d.mts} +16 -5
- package/dist/{common.constants-CjiyQMVZ.d.ts → common.constants-Dd81SRrq.d.ts} +16 -5
- package/dist/index.d.mts +244 -16
- package/dist/index.d.ts +244 -16
- package/dist/index.js +7713 -2683
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7705 -2685
- package/dist/index.mjs.map +1 -1
- package/dist/translation/index.d.mts +1 -1
- package/dist/translation/index.d.ts +1 -1
- package/dist/translation/index.js.map +1 -1
- package/dist/translation/index.mjs.map +1 -1
- package/dist/translation/translation.constants.js.map +1 -1
- package/dist/translation/translation.constants.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -12,6 +12,11 @@ declare enum Environment {
|
|
|
12
12
|
VENUS = "VENUS",
|
|
13
13
|
PROD = "PROD"
|
|
14
14
|
}
|
|
15
|
+
declare enum HomeRegion {
|
|
16
|
+
US_MAIN = "us-main",
|
|
17
|
+
CA_MAIN = "ca-main",
|
|
18
|
+
EU_MAIN = "eu-main"
|
|
19
|
+
}
|
|
15
20
|
declare enum PlatformBuildTarget {
|
|
16
21
|
PLUTO = "pluto",
|
|
17
22
|
MARS = "mars",
|
|
@@ -26,6 +31,16 @@ declare enum Locale {
|
|
|
26
31
|
SCT = "en-SCT",
|
|
27
32
|
DE = "de-DE",
|
|
28
33
|
PL = "pl-PL",
|
|
34
|
+
IT = "it-IT",
|
|
35
|
+
FR = "fr-FR",
|
|
36
|
+
DK = "da-DK",
|
|
37
|
+
NO = "no-NO",
|
|
38
|
+
NL = "nl-NL",
|
|
39
|
+
FI = "fi-FI",
|
|
40
|
+
NL_BE = "nl-BE",
|
|
41
|
+
IE = "en-IE",
|
|
42
|
+
IS = "is-IS",
|
|
43
|
+
SV_FI = "sv-FI",
|
|
29
44
|
AT = "de-AT",
|
|
30
45
|
CH = "de-CH",
|
|
31
46
|
ES = "es-ES",
|
|
@@ -75,14 +90,10 @@ declare enum SSO {
|
|
|
75
90
|
CANVAS = "CANVAS",
|
|
76
91
|
QR_CODE = "QR_CODE"
|
|
77
92
|
}
|
|
78
|
-
declare enum ApiRegion {
|
|
79
|
-
MAIN = "MAIN",
|
|
80
|
-
CANADA = "CANADA"
|
|
81
|
-
}
|
|
82
93
|
declare enum QRCodeSize {
|
|
83
94
|
DEFAULT = "default",
|
|
84
95
|
MEDIUM = "medium",
|
|
85
96
|
LARGE = "large"
|
|
86
97
|
}
|
|
87
98
|
|
|
88
|
-
export {
|
|
99
|
+
export { Environment as E, HomeRegion as H, LoginSource as L, Platform as P, QRCodeSize as Q, SSO as S, Locale as a, PlatformBuildTarget as b, Source as c };
|
|
@@ -12,6 +12,11 @@ declare enum Environment {
|
|
|
12
12
|
VENUS = "VENUS",
|
|
13
13
|
PROD = "PROD"
|
|
14
14
|
}
|
|
15
|
+
declare enum HomeRegion {
|
|
16
|
+
US_MAIN = "us-main",
|
|
17
|
+
CA_MAIN = "ca-main",
|
|
18
|
+
EU_MAIN = "eu-main"
|
|
19
|
+
}
|
|
15
20
|
declare enum PlatformBuildTarget {
|
|
16
21
|
PLUTO = "pluto",
|
|
17
22
|
MARS = "mars",
|
|
@@ -26,6 +31,16 @@ declare enum Locale {
|
|
|
26
31
|
SCT = "en-SCT",
|
|
27
32
|
DE = "de-DE",
|
|
28
33
|
PL = "pl-PL",
|
|
34
|
+
IT = "it-IT",
|
|
35
|
+
FR = "fr-FR",
|
|
36
|
+
DK = "da-DK",
|
|
37
|
+
NO = "no-NO",
|
|
38
|
+
NL = "nl-NL",
|
|
39
|
+
FI = "fi-FI",
|
|
40
|
+
NL_BE = "nl-BE",
|
|
41
|
+
IE = "en-IE",
|
|
42
|
+
IS = "is-IS",
|
|
43
|
+
SV_FI = "sv-FI",
|
|
29
44
|
AT = "de-AT",
|
|
30
45
|
CH = "de-CH",
|
|
31
46
|
ES = "es-ES",
|
|
@@ -75,14 +90,10 @@ declare enum SSO {
|
|
|
75
90
|
CANVAS = "CANVAS",
|
|
76
91
|
QR_CODE = "QR_CODE"
|
|
77
92
|
}
|
|
78
|
-
declare enum ApiRegion {
|
|
79
|
-
MAIN = "MAIN",
|
|
80
|
-
CANADA = "CANADA"
|
|
81
|
-
}
|
|
82
93
|
declare enum QRCodeSize {
|
|
83
94
|
DEFAULT = "default",
|
|
84
95
|
MEDIUM = "medium",
|
|
85
96
|
LARGE = "large"
|
|
86
97
|
}
|
|
87
98
|
|
|
88
|
-
export {
|
|
99
|
+
export { Environment as E, HomeRegion as H, 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,8 +1,16 @@
|
|
|
1
|
-
import { S as SSO, L as LoginSource,
|
|
2
|
-
export { c as Source } from './common.constants-
|
|
1
|
+
import { S as SSO, L as LoginSource, H as HomeRegion, E as Environment, a as Locale, P as Platform, b as PlatformBuildTarget, Q as QRCodeSize } from './common.constants-Dd81SRrq.mjs';
|
|
2
|
+
export { c as Source } from './common.constants-Dd81SRrq.mjs';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import * as effector from 'effector';
|
|
5
5
|
|
|
6
|
+
declare enum CalculatorType {
|
|
7
|
+
Off = 0,
|
|
8
|
+
Regular = 1,
|
|
9
|
+
Scientific = 2,
|
|
10
|
+
Graphic = 3,
|
|
11
|
+
Cas = 4
|
|
12
|
+
}
|
|
13
|
+
|
|
6
14
|
declare enum DateFormat {
|
|
7
15
|
FULL = "YYYY-MM-DD HH:mm",
|
|
8
16
|
FULL_US = "YYYY-MM-DD hh:mm A",
|
|
@@ -33,6 +41,26 @@ declare const DateLocale: {
|
|
|
33
41
|
readonly 'de-DE': "de";
|
|
34
42
|
readonly PL: "pl";
|
|
35
43
|
readonly 'pl-PL': "pl";
|
|
44
|
+
readonly IT: "it";
|
|
45
|
+
readonly 'it-IT': "it";
|
|
46
|
+
readonly FR: "fr";
|
|
47
|
+
readonly 'fr-FR': "fr";
|
|
48
|
+
readonly DK: "da";
|
|
49
|
+
readonly 'da-DK': "da";
|
|
50
|
+
readonly NO: "no";
|
|
51
|
+
readonly 'no-NO': "no";
|
|
52
|
+
readonly NL: "nl";
|
|
53
|
+
readonly 'nl-NL': "nl";
|
|
54
|
+
readonly FI: "fi";
|
|
55
|
+
readonly 'fi-FI': "fi";
|
|
56
|
+
readonly NL_BE: "nl";
|
|
57
|
+
readonly 'nl-BE': "nl";
|
|
58
|
+
readonly IE: "en";
|
|
59
|
+
readonly 'en-IE': "en";
|
|
60
|
+
readonly IS: "is";
|
|
61
|
+
readonly 'is-IS': "is";
|
|
62
|
+
readonly SV_FI: "sv";
|
|
63
|
+
readonly 'sv-FI': "sv";
|
|
36
64
|
readonly AT: "de";
|
|
37
65
|
readonly 'de-AT': "de";
|
|
38
66
|
readonly CH: "de";
|
|
@@ -50,6 +78,16 @@ declare const MomentDateLocale: {
|
|
|
50
78
|
SE: string;
|
|
51
79
|
DE: string;
|
|
52
80
|
PL: string;
|
|
81
|
+
IT: string;
|
|
82
|
+
FR: string;
|
|
83
|
+
DK: string;
|
|
84
|
+
NO: string;
|
|
85
|
+
NL: string;
|
|
86
|
+
FI: string;
|
|
87
|
+
NL_BE: string;
|
|
88
|
+
IE: string;
|
|
89
|
+
IS: string;
|
|
90
|
+
SV_FI: string;
|
|
53
91
|
AT: string;
|
|
54
92
|
CH: string;
|
|
55
93
|
ES: string;
|
|
@@ -278,6 +316,15 @@ declare enum CalendarLocale {
|
|
|
278
316
|
SE = "sv",
|
|
279
317
|
DE = "de",
|
|
280
318
|
PL = "pl",
|
|
319
|
+
IT = "it",
|
|
320
|
+
FR = "fr",
|
|
321
|
+
DK = "da",
|
|
322
|
+
NO = "no",
|
|
323
|
+
NL = "nl",
|
|
324
|
+
FI = "fi",
|
|
325
|
+
NL_BE = "nl-be",
|
|
326
|
+
SV_FI = "sv-fi",
|
|
327
|
+
IS = "is",
|
|
281
328
|
ES = "es",
|
|
282
329
|
PT = "pt",
|
|
283
330
|
IQ = "ckb"
|
|
@@ -299,6 +346,15 @@ declare const CH_CALENDAR_CONFIG: CalendarConfig;
|
|
|
299
346
|
declare const ES_CALENDAR_CONFIG: CalendarConfig;
|
|
300
347
|
declare const PT_CALENDAR_CONFIG: CalendarConfig;
|
|
301
348
|
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
349
|
+
declare const IT_CALENDAR_CONFIG: CalendarConfig;
|
|
350
|
+
declare const FR_CALENDAR_CONFIG: CalendarConfig;
|
|
351
|
+
declare const NO_CALENDAR_CONFIG: CalendarConfig;
|
|
352
|
+
declare const NL_CALENDAR_CONFIG: CalendarConfig;
|
|
353
|
+
declare const FI_CALENDAR_CONFIG: CalendarConfig;
|
|
354
|
+
declare const NL_BE_CALENDAR_CONFIG: CalendarConfig;
|
|
355
|
+
declare const SV_FI_CALENDAR_CONFIG: CalendarConfig;
|
|
356
|
+
declare const DK_CALENDAR_CONFIG: CalendarConfig;
|
|
357
|
+
declare const IS_CALENDAR_CONFIG: CalendarConfig;
|
|
302
358
|
declare const IQ_CALENDAR_CONFIG: CalendarConfig;
|
|
303
359
|
|
|
304
360
|
type GradeData = {
|
|
@@ -357,9 +413,17 @@ type StudentsWebCommon = {
|
|
|
357
413
|
};
|
|
358
414
|
type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
|
|
359
415
|
type StudentsWebVarsPreset = {
|
|
360
|
-
[
|
|
416
|
+
[HomeRegion.US_MAIN]: {
|
|
417
|
+
[key in Environment]: StudentsWebVars;
|
|
418
|
+
};
|
|
419
|
+
[HomeRegion.CA_MAIN]: {
|
|
361
420
|
[key in Environment]: StudentsWebVars;
|
|
362
421
|
};
|
|
422
|
+
[HomeRegion.EU_MAIN]: {
|
|
423
|
+
[key in Locale]: {
|
|
424
|
+
[key in Environment]: StudentsWebVars;
|
|
425
|
+
};
|
|
426
|
+
};
|
|
363
427
|
};
|
|
364
428
|
|
|
365
429
|
type TeachersWebCommon = {
|
|
@@ -369,7 +433,6 @@ type TeachersWebCommon = {
|
|
|
369
433
|
MYSCRIPT_REST_HMAC_KEY: string;
|
|
370
434
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
371
435
|
INTERCOM_APP_ID: string;
|
|
372
|
-
CLARITY_PROJECT_ID: string;
|
|
373
436
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
374
437
|
TOLGEE_API_URL?: string;
|
|
375
438
|
TOLGEE_API_KEY?: string;
|
|
@@ -378,24 +441,40 @@ type TeachersWebCommon = {
|
|
|
378
441
|
};
|
|
379
442
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
380
443
|
type TeachersWebVarsPreset = {
|
|
381
|
-
[
|
|
444
|
+
[HomeRegion.US_MAIN]: {
|
|
382
445
|
[key in Environment]: TeachersWebVars;
|
|
383
446
|
};
|
|
447
|
+
[HomeRegion.CA_MAIN]: {
|
|
448
|
+
[key in Environment]: TeachersWebVars;
|
|
449
|
+
};
|
|
450
|
+
[HomeRegion.EU_MAIN]: {
|
|
451
|
+
[key in Locale]: {
|
|
452
|
+
[key in Environment]: TeachersWebVars;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
384
455
|
};
|
|
385
456
|
|
|
386
457
|
type DistrictCommon = {
|
|
387
458
|
CDN_HOST_TRANSLATIONS: string;
|
|
388
459
|
INTERCOM_APP_ID: string;
|
|
389
|
-
|
|
460
|
+
AMPLITUDE_API_KEY?: string;
|
|
390
461
|
PROBLEM_IMAGE_SIZE_LIMIT: number;
|
|
391
462
|
TOLGEE_API_URL?: string;
|
|
392
463
|
TOLGEE_API_KEY?: string;
|
|
393
464
|
};
|
|
394
465
|
type DistrictDashboardVars = RegionSpecificVars & DistrictCommon;
|
|
395
466
|
type DistrictWebVarsPreset = {
|
|
396
|
-
[
|
|
467
|
+
[HomeRegion.US_MAIN]: {
|
|
468
|
+
[key in Environment]: DistrictDashboardVars;
|
|
469
|
+
};
|
|
470
|
+
[HomeRegion.CA_MAIN]: {
|
|
397
471
|
[key in Environment]: DistrictDashboardVars;
|
|
398
472
|
};
|
|
473
|
+
[HomeRegion.EU_MAIN]: {
|
|
474
|
+
[key in Locale]: {
|
|
475
|
+
[key in Environment]: DistrictDashboardVars;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
399
478
|
};
|
|
400
479
|
|
|
401
480
|
type SSO_UK = {
|
|
@@ -425,6 +504,46 @@ type SSO_PL = {
|
|
|
425
504
|
GOOGLE_AUTH: string;
|
|
426
505
|
MICROSOFT_AUTH: string;
|
|
427
506
|
};
|
|
507
|
+
type SSO_IT = {
|
|
508
|
+
GOOGLE_AUTH: string;
|
|
509
|
+
MICROSOFT_AUTH: string;
|
|
510
|
+
};
|
|
511
|
+
type SSO_FR = {
|
|
512
|
+
GOOGLE_AUTH: string;
|
|
513
|
+
MICROSOFT_AUTH: string;
|
|
514
|
+
};
|
|
515
|
+
type SSO_DK = {
|
|
516
|
+
GOOGLE_AUTH: string;
|
|
517
|
+
MICROSOFT_AUTH: string;
|
|
518
|
+
};
|
|
519
|
+
type SSO_NO = {
|
|
520
|
+
GOOGLE_AUTH: string;
|
|
521
|
+
MICROSOFT_AUTH: string;
|
|
522
|
+
};
|
|
523
|
+
type SSO_NL = {
|
|
524
|
+
GOOGLE_AUTH: string;
|
|
525
|
+
MICROSOFT_AUTH: string;
|
|
526
|
+
};
|
|
527
|
+
type SSO_FI = {
|
|
528
|
+
GOOGLE_AUTH: string;
|
|
529
|
+
MICROSOFT_AUTH: string;
|
|
530
|
+
};
|
|
531
|
+
type SSO_NL_BE = {
|
|
532
|
+
GOOGLE_AUTH: string;
|
|
533
|
+
MICROSOFT_AUTH: string;
|
|
534
|
+
};
|
|
535
|
+
type SSO_IE = {
|
|
536
|
+
GOOGLE_AUTH: string;
|
|
537
|
+
MICROSOFT_AUTH: string;
|
|
538
|
+
};
|
|
539
|
+
type SSO_IS = {
|
|
540
|
+
GOOGLE_AUTH: string;
|
|
541
|
+
MICROSOFT_AUTH: string;
|
|
542
|
+
};
|
|
543
|
+
type SSO_SV_FI = {
|
|
544
|
+
GOOGLE_AUTH: string;
|
|
545
|
+
MICROSOFT_AUTH: string;
|
|
546
|
+
};
|
|
428
547
|
type SSO_AT = {
|
|
429
548
|
GOOGLE_AUTH: string;
|
|
430
549
|
MICROSOFT_AUTH: string;
|
|
@@ -442,7 +561,7 @@ type SSO_PT = {
|
|
|
442
561
|
MICROSOFT_AUTH: string;
|
|
443
562
|
};
|
|
444
563
|
type SSO_IQ = {};
|
|
445
|
-
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL | SSO_AT | SSO_CH | SSO_ES | SSO_PT | SSO_IQ;
|
|
564
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL | SSO_IT | SSO_FR | SSO_DK | SSO_NO | SSO_NL | SSO_FI | SSO_NL_BE | SSO_IE | SSO_IS | SSO_SV_FI | SSO_AT | SSO_CH | SSO_ES | SSO_PT | SSO_IQ;
|
|
446
565
|
type SSOByLocale = {
|
|
447
566
|
[Locale.US]: SSO_US;
|
|
448
567
|
[Locale.CA]: SSO_US;
|
|
@@ -451,6 +570,16 @@ type SSOByLocale = {
|
|
|
451
570
|
[Locale.SE]: SSO_SE;
|
|
452
571
|
[Locale.DE]: SSO_DE;
|
|
453
572
|
[Locale.PL]: SSO_PL;
|
|
573
|
+
[Locale.IT]: SSO_IT;
|
|
574
|
+
[Locale.FR]: SSO_FR;
|
|
575
|
+
[Locale.DK]: SSO_DK;
|
|
576
|
+
[Locale.NO]: SSO_NO;
|
|
577
|
+
[Locale.NL]: SSO_NL;
|
|
578
|
+
[Locale.FI]: SSO_FI;
|
|
579
|
+
[Locale.NL_BE]: SSO_NL_BE;
|
|
580
|
+
[Locale.IE]: SSO_IE;
|
|
581
|
+
[Locale.IS]: SSO_IS;
|
|
582
|
+
[Locale.SV_FI]: SSO_SV_FI;
|
|
454
583
|
[Locale.AT]: SSO_AT;
|
|
455
584
|
[Locale.CH]: SSO_CH;
|
|
456
585
|
[Locale.ES]: SSO_ES;
|
|
@@ -465,12 +594,12 @@ type Prettify<T> = T extends Function ? T : {
|
|
|
465
594
|
type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
|
|
466
595
|
type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL' | 'WEBSOCKETS_URL'> & {
|
|
467
596
|
TOS_URL: string;
|
|
468
|
-
|
|
597
|
+
AMPLITUDE_API_KEY?: string;
|
|
469
598
|
INTERCOM_APP_ID: string;
|
|
470
599
|
TOLGEE_API_URL?: string;
|
|
471
600
|
TOLGEE_API_KEY?: string;
|
|
472
601
|
};
|
|
473
|
-
type
|
|
602
|
+
type AuthWebEuLocalePreset = {
|
|
474
603
|
[Locale.CA]: {
|
|
475
604
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
476
605
|
};
|
|
@@ -492,6 +621,36 @@ type AuthWebVarsPreset = {
|
|
|
492
621
|
[Locale.PL]: {
|
|
493
622
|
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
494
623
|
};
|
|
624
|
+
[Locale.IT]: {
|
|
625
|
+
[key in Environment]: AuthWebVars<SSO_IT>;
|
|
626
|
+
};
|
|
627
|
+
[Locale.FR]: {
|
|
628
|
+
[key in Environment]: AuthWebVars<SSO_FR>;
|
|
629
|
+
};
|
|
630
|
+
[Locale.DK]: {
|
|
631
|
+
[key in Environment]: AuthWebVars<SSO_DK>;
|
|
632
|
+
};
|
|
633
|
+
[Locale.NO]: {
|
|
634
|
+
[key in Environment]: AuthWebVars<SSO_NO>;
|
|
635
|
+
};
|
|
636
|
+
[Locale.NL]: {
|
|
637
|
+
[key in Environment]: AuthWebVars<SSO_NL>;
|
|
638
|
+
};
|
|
639
|
+
[Locale.FI]: {
|
|
640
|
+
[key in Environment]: AuthWebVars<SSO_FI>;
|
|
641
|
+
};
|
|
642
|
+
[Locale.NL_BE]: {
|
|
643
|
+
[key in Environment]: AuthWebVars<SSO_NL_BE>;
|
|
644
|
+
};
|
|
645
|
+
[Locale.IE]: {
|
|
646
|
+
[key in Environment]: AuthWebVars<SSO_IE>;
|
|
647
|
+
};
|
|
648
|
+
[Locale.IS]: {
|
|
649
|
+
[key in Environment]: AuthWebVars<SSO_IS>;
|
|
650
|
+
};
|
|
651
|
+
[Locale.SV_FI]: {
|
|
652
|
+
[key in Environment]: AuthWebVars<SSO_SV_FI>;
|
|
653
|
+
};
|
|
495
654
|
[Locale.AT]: {
|
|
496
655
|
[key in Environment]: AuthWebVars<SSO_AT>;
|
|
497
656
|
};
|
|
@@ -508,6 +667,15 @@ type AuthWebVarsPreset = {
|
|
|
508
667
|
[key in Environment]: AuthWebVars<SSO_IQ>;
|
|
509
668
|
};
|
|
510
669
|
};
|
|
670
|
+
type AuthWebVarsPreset = {
|
|
671
|
+
[HomeRegion.US_MAIN]: {
|
|
672
|
+
[key in Environment]: AuthWebVars<SSO_US>;
|
|
673
|
+
};
|
|
674
|
+
[HomeRegion.CA_MAIN]: {
|
|
675
|
+
[key in Environment]: AuthWebVars<SSO_US>;
|
|
676
|
+
};
|
|
677
|
+
[HomeRegion.EU_MAIN]: AuthWebEuLocalePreset;
|
|
678
|
+
};
|
|
511
679
|
|
|
512
680
|
type MobileCommon = {
|
|
513
681
|
CDN_HOST_TRANSLATIONS: string;
|
|
@@ -539,7 +707,7 @@ type MobileBaseVars = {
|
|
|
539
707
|
PROBLEM_CREATOR_URL: string;
|
|
540
708
|
} & MobileCommon;
|
|
541
709
|
type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
|
|
542
|
-
type
|
|
710
|
+
type MobileEuLocalePreset = {
|
|
543
711
|
[Locale.CA]: {
|
|
544
712
|
[key in Environment]: MobileVars<SSO_US>;
|
|
545
713
|
};
|
|
@@ -561,6 +729,36 @@ type MobileVarsPreset = {
|
|
|
561
729
|
[Locale.PL]: {
|
|
562
730
|
[key in Environment]: MobileVars<SSO_PL>;
|
|
563
731
|
};
|
|
732
|
+
[Locale.IT]: {
|
|
733
|
+
[key in Environment]: MobileVars<SSO_IT>;
|
|
734
|
+
};
|
|
735
|
+
[Locale.FR]: {
|
|
736
|
+
[key in Environment]: MobileVars<SSO_FR>;
|
|
737
|
+
};
|
|
738
|
+
[Locale.DK]: {
|
|
739
|
+
[key in Environment]: MobileVars<SSO_DK>;
|
|
740
|
+
};
|
|
741
|
+
[Locale.NO]: {
|
|
742
|
+
[key in Environment]: MobileVars<SSO_NO>;
|
|
743
|
+
};
|
|
744
|
+
[Locale.NL]: {
|
|
745
|
+
[key in Environment]: MobileVars<SSO_NL>;
|
|
746
|
+
};
|
|
747
|
+
[Locale.FI]: {
|
|
748
|
+
[key in Environment]: MobileVars<SSO_FI>;
|
|
749
|
+
};
|
|
750
|
+
[Locale.NL_BE]: {
|
|
751
|
+
[key in Environment]: MobileVars<SSO_NL_BE>;
|
|
752
|
+
};
|
|
753
|
+
[Locale.IE]: {
|
|
754
|
+
[key in Environment]: MobileVars<SSO_IE>;
|
|
755
|
+
};
|
|
756
|
+
[Locale.IS]: {
|
|
757
|
+
[key in Environment]: MobileVars<SSO_IS>;
|
|
758
|
+
};
|
|
759
|
+
[Locale.SV_FI]: {
|
|
760
|
+
[key in Environment]: MobileVars<SSO_SV_FI>;
|
|
761
|
+
};
|
|
564
762
|
[Locale.AT]: {
|
|
565
763
|
[key in Environment]: MobileVars<SSO_AT>;
|
|
566
764
|
};
|
|
@@ -577,6 +775,15 @@ type MobileVarsPreset = {
|
|
|
577
775
|
[key in Environment]: MobileVars<SSO_IQ>;
|
|
578
776
|
};
|
|
579
777
|
};
|
|
778
|
+
type MobileVarsPreset = {
|
|
779
|
+
[HomeRegion.US_MAIN]: {
|
|
780
|
+
[key in Environment]: MobileVars<SSO_US>;
|
|
781
|
+
};
|
|
782
|
+
[HomeRegion.CA_MAIN]: {
|
|
783
|
+
[key in Environment]: MobileVars<SSO_US>;
|
|
784
|
+
};
|
|
785
|
+
[HomeRegion.EU_MAIN]: MobileEuLocalePreset;
|
|
786
|
+
};
|
|
580
787
|
|
|
581
788
|
type RegionSpecificWebAdminVars = {
|
|
582
789
|
API_URL: string;
|
|
@@ -591,9 +798,17 @@ type WebAdminCommon = {
|
|
|
591
798
|
};
|
|
592
799
|
type WebAdminVars = RegionSpecificWebAdminVars & WebAdminCommon;
|
|
593
800
|
type WebAdminVarsPreset = {
|
|
594
|
-
[
|
|
801
|
+
[HomeRegion.US_MAIN]: {
|
|
595
802
|
[key in Environment]: WebAdminVars;
|
|
596
803
|
};
|
|
804
|
+
[HomeRegion.CA_MAIN]: {
|
|
805
|
+
[key in Environment]: WebAdminVars;
|
|
806
|
+
};
|
|
807
|
+
[HomeRegion.EU_MAIN]: {
|
|
808
|
+
[key in Locale]: {
|
|
809
|
+
[key in Environment]: WebAdminVars;
|
|
810
|
+
};
|
|
811
|
+
};
|
|
597
812
|
};
|
|
598
813
|
|
|
599
814
|
type ParentWebVars = {
|
|
@@ -602,9 +817,17 @@ type ParentWebVars = {
|
|
|
602
817
|
AUTH_WEB_URL: string;
|
|
603
818
|
};
|
|
604
819
|
type ParentWebVarsPreset = {
|
|
605
|
-
[
|
|
820
|
+
[HomeRegion.US_MAIN]: {
|
|
821
|
+
[key in Environment]: ParentWebVars;
|
|
822
|
+
};
|
|
823
|
+
[HomeRegion.CA_MAIN]: {
|
|
606
824
|
[key in Environment]: ParentWebVars;
|
|
607
825
|
};
|
|
826
|
+
[HomeRegion.EU_MAIN]: {
|
|
827
|
+
[key in Locale]: {
|
|
828
|
+
[key in Environment]: ParentWebVars;
|
|
829
|
+
};
|
|
830
|
+
};
|
|
608
831
|
};
|
|
609
832
|
|
|
610
833
|
type EnvPreset = Readonly<{
|
|
@@ -616,7 +839,7 @@ type EnvPreset = Readonly<{
|
|
|
616
839
|
[Platform.MOBILE]: MobileVarsPreset;
|
|
617
840
|
[Platform.PARENT_WEB]: ParentWebVarsPreset;
|
|
618
841
|
}>;
|
|
619
|
-
type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
|
|
842
|
+
type EnvironmentVars<P extends Platform> = EnvPreset[P][HomeRegion.US_MAIN][Environment] | EnvPreset[P][HomeRegion.CA_MAIN][Environment] | EnvPreset[P][HomeRegion.EU_MAIN][Locale][Environment];
|
|
620
843
|
|
|
621
844
|
declare function buildTargetToEnvironment(buildTarget: PlatformBuildTarget): Environment;
|
|
622
845
|
|
|
@@ -714,6 +937,7 @@ type ProblemCreatorConfig = {
|
|
|
714
937
|
};
|
|
715
938
|
|
|
716
939
|
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
940
|
+
calculators: CalculatorType[];
|
|
717
941
|
emails: {
|
|
718
942
|
studentsList: string;
|
|
719
943
|
};
|
|
@@ -778,7 +1002,7 @@ type WebAdminLocaleConfig = {
|
|
|
778
1002
|
locale: Locale;
|
|
779
1003
|
isPrimaryRegion: boolean;
|
|
780
1004
|
regionGroup: string;
|
|
781
|
-
|
|
1005
|
+
homeRegion: HomeRegion;
|
|
782
1006
|
};
|
|
783
1007
|
|
|
784
1008
|
type DateConfig = Readonly<{
|
|
@@ -868,12 +1092,14 @@ type DevOverrides<P extends Platform> = {
|
|
|
868
1092
|
type ConfigOptions<P extends Platform> = {
|
|
869
1093
|
platform: P;
|
|
870
1094
|
environment: Environment;
|
|
1095
|
+
homeRegion?: HomeRegion;
|
|
871
1096
|
_DEV_OVERRIDES_?: DevOverrides<P>;
|
|
872
1097
|
};
|
|
873
1098
|
type SetProps<L extends Locale> = {
|
|
874
1099
|
locale?: L;
|
|
875
1100
|
envsRegion?: L;
|
|
876
1101
|
environment?: Environment;
|
|
1102
|
+
homeRegion?: HomeRegion;
|
|
877
1103
|
};
|
|
878
1104
|
declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
879
1105
|
private readonly _DEV_OVERRIDES_?;
|
|
@@ -881,6 +1107,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
881
1107
|
environment: Environment;
|
|
882
1108
|
locale: L;
|
|
883
1109
|
envsRegion: L;
|
|
1110
|
+
homeRegion: HomeRegion;
|
|
884
1111
|
private readonly setEnvs;
|
|
885
1112
|
private readonly setLocaleConfig;
|
|
886
1113
|
readonly $envs: effector.StoreWritable<EnvironmentVars<P>>;
|
|
@@ -895,6 +1122,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
895
1122
|
isPolish: boolean;
|
|
896
1123
|
}>;
|
|
897
1124
|
constructor(opts: ConfigOptions<P>);
|
|
1125
|
+
private readonly resolveEnvs;
|
|
898
1126
|
private readonly syncConfigsStores;
|
|
899
1127
|
readonly set: (props: SetProps<L>) => void;
|
|
900
1128
|
getEnvs: () => EnvironmentVars<P>;
|
|
@@ -918,4 +1146,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
918
1146
|
};
|
|
919
1147
|
}
|
|
920
1148
|
|
|
921
|
-
export { AT_CALENDAR_CONFIG,
|
|
1149
|
+
export { AT_CALENDAR_CONFIG, AppConfigManager, type AuthWebBaseVars, type AuthWebEuLocalePreset, type AuthWebVars, type AuthWebVarsPreset, CH_CALENDAR_CONFIG, CalculatorType, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DK_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, type HighSchoolGrades, HomeRegion, IQ_CALENDAR_CONFIG, IS_CALENDAR_CONFIG, IT_CALENDAR_CONFIG, 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 MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, PT_CALENDAR_CONFIG, type ParentWebLocaleConfig, type ParentWebVars, type ParentWebVarsPreset, Platform, PlatformBuildTarget, type PrimaryGrades, type ProblemCreatorConfig, ProblemCreatorDescriptionVariant, type ProblemCreatorKeyboardConfig, ProblemCreatorKeyboardPreset, ProblemCreatorMathEntryVariant, QRCodeSize, SE_CALENDAR_CONFIG, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_AT, type SSO_CH, type SSO_DE, type SSO_DK, type SSO_ES, type SSO_FI, type SSO_FR, type SSO_IE, type SSO_IQ, type SSO_IS, type SSO_IT, type SSO_NL, type SSO_NL_BE, type SSO_NO, type SSO_PL, type SSO_PT, type SSO_SE, type SSO_SV_FI, type SSO_UK, type SSO_US, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
|