@magmamath/frontend-config 1.3.4-rc.6 → 1.3.5-rc.1
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-Dy4DFaEM.d.mts → common.constants-DM-Bg4xS.d.mts} +2 -1
- package/dist/{common.constants-Dy4DFaEM.d.ts → common.constants-DM-Bg4xS.d.ts} +2 -1
- package/dist/index.d.mts +25 -5
- package/dist/index.d.ts +25 -5
- package/dist/index.js +493 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +493 -13
- package/dist/index.mjs.map +1 -1
- package/dist/translation/index.d.mts +1 -4
- package/dist/translation/index.d.ts +1 -4
- package/dist/translation/index.js +6 -49
- package/dist/translation/index.js.map +1 -1
- package/dist/translation/index.mjs +6 -49
- package/dist/translation/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +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-
|
|
2
|
-
export { c as Source } from './common.constants-
|
|
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-DM-Bg4xS.mjs';
|
|
2
|
+
export { c as Source } from './common.constants-DM-Bg4xS.mjs';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import * as effector from 'effector';
|
|
5
5
|
|
|
@@ -31,12 +31,15 @@ declare const DateLocale: {
|
|
|
31
31
|
readonly 'en-SCT': "en";
|
|
32
32
|
readonly DE: "de";
|
|
33
33
|
readonly 'de-DE': "de";
|
|
34
|
+
readonly PL: "pl";
|
|
35
|
+
readonly 'pl-PL': "pl";
|
|
34
36
|
};
|
|
35
37
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
36
38
|
declare const MomentDateLocale: {
|
|
37
39
|
GB: string;
|
|
38
40
|
SE: string;
|
|
39
41
|
DE: string;
|
|
42
|
+
PL: string;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
declare enum MatrixMode {
|
|
@@ -257,7 +260,8 @@ declare enum WeekStart {
|
|
|
257
260
|
declare enum CalendarLocale {
|
|
258
261
|
EN = "en",
|
|
259
262
|
SE = "sv",
|
|
260
|
-
DE = "de"
|
|
263
|
+
DE = "de",
|
|
264
|
+
PL = "pl"
|
|
261
265
|
}
|
|
262
266
|
type CalendarConfig = {
|
|
263
267
|
locale: CalendarLocale;
|
|
@@ -271,6 +275,7 @@ type CalendarConfig = {
|
|
|
271
275
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
272
276
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
273
277
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
+
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
274
279
|
|
|
275
280
|
type GradeData = {
|
|
276
281
|
name: string;
|
|
@@ -343,6 +348,8 @@ type TeachersWebCommon = {
|
|
|
343
348
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
344
349
|
TOLGEE_API_URL?: string;
|
|
345
350
|
TOLGEE_API_KEY?: string;
|
|
351
|
+
GOOGLE_TRANSLATE_URL: string;
|
|
352
|
+
GOOGLE_API_KEY: string;
|
|
346
353
|
};
|
|
347
354
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
348
355
|
type TeachersWebVarsPreset = {
|
|
@@ -389,7 +396,11 @@ type SSO_DE = {
|
|
|
389
396
|
GOOGLE_AUTH: string;
|
|
390
397
|
MICROSOFT_AUTH: string;
|
|
391
398
|
};
|
|
392
|
-
type
|
|
399
|
+
type SSO_PL = {
|
|
400
|
+
GOOGLE_AUTH: string;
|
|
401
|
+
MICROSOFT_AUTH: string;
|
|
402
|
+
};
|
|
403
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
393
404
|
type SSOByLocale = {
|
|
394
405
|
[Locale.US]: SSO_US;
|
|
395
406
|
[Locale.CA]: SSO_US;
|
|
@@ -397,6 +408,7 @@ type SSOByLocale = {
|
|
|
397
408
|
[Locale.SCT]: SSO_UK;
|
|
398
409
|
[Locale.SE]: SSO_SE;
|
|
399
410
|
[Locale.DE]: SSO_DE;
|
|
411
|
+
[Locale.PL]: SSO_PL;
|
|
400
412
|
};
|
|
401
413
|
|
|
402
414
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -430,6 +442,9 @@ type AuthWebVarsPreset = {
|
|
|
430
442
|
[Locale.US]: {
|
|
431
443
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
432
444
|
};
|
|
445
|
+
[Locale.PL]: {
|
|
446
|
+
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
447
|
+
};
|
|
433
448
|
};
|
|
434
449
|
|
|
435
450
|
type MobileCommon = {
|
|
@@ -480,6 +495,9 @@ type MobileVarsPreset = {
|
|
|
480
495
|
[Locale.US]: {
|
|
481
496
|
[key in Environment]: MobileVars<SSO_US>;
|
|
482
497
|
};
|
|
498
|
+
[Locale.PL]: {
|
|
499
|
+
[key in Environment]: MobileVars<SSO_PL>;
|
|
500
|
+
};
|
|
483
501
|
};
|
|
484
502
|
|
|
485
503
|
type RegionSpecificWebAdminVars = {
|
|
@@ -787,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
787
805
|
isCanadian: boolean;
|
|
788
806
|
isScottish: boolean;
|
|
789
807
|
isGerman: boolean;
|
|
808
|
+
isPolish: boolean;
|
|
790
809
|
}>;
|
|
791
810
|
constructor(opts: ConfigOptions<P>);
|
|
792
811
|
private readonly syncConfigsStores;
|
|
@@ -802,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
802
821
|
isCanadian: boolean;
|
|
803
822
|
isScottish: boolean;
|
|
804
823
|
isGerman: boolean;
|
|
824
|
+
isPolish: boolean;
|
|
805
825
|
};
|
|
806
826
|
readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
|
|
807
827
|
readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
|
|
@@ -811,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
811
831
|
};
|
|
812
832
|
}
|
|
813
833
|
|
|
814
|
-
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, 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_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 };
|
|
834
|
+
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, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, 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_DE, type SSO_PL, 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,5 +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-
|
|
2
|
-
export { c as Source } from './common.constants-
|
|
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-DM-Bg4xS.js';
|
|
2
|
+
export { c as Source } from './common.constants-DM-Bg4xS.js';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import * as effector from 'effector';
|
|
5
5
|
|
|
@@ -31,12 +31,15 @@ declare const DateLocale: {
|
|
|
31
31
|
readonly 'en-SCT': "en";
|
|
32
32
|
readonly DE: "de";
|
|
33
33
|
readonly 'de-DE': "de";
|
|
34
|
+
readonly PL: "pl";
|
|
35
|
+
readonly 'pl-PL': "pl";
|
|
34
36
|
};
|
|
35
37
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
36
38
|
declare const MomentDateLocale: {
|
|
37
39
|
GB: string;
|
|
38
40
|
SE: string;
|
|
39
41
|
DE: string;
|
|
42
|
+
PL: string;
|
|
40
43
|
};
|
|
41
44
|
|
|
42
45
|
declare enum MatrixMode {
|
|
@@ -257,7 +260,8 @@ declare enum WeekStart {
|
|
|
257
260
|
declare enum CalendarLocale {
|
|
258
261
|
EN = "en",
|
|
259
262
|
SE = "sv",
|
|
260
|
-
DE = "de"
|
|
263
|
+
DE = "de",
|
|
264
|
+
PL = "pl"
|
|
261
265
|
}
|
|
262
266
|
type CalendarConfig = {
|
|
263
267
|
locale: CalendarLocale;
|
|
@@ -271,6 +275,7 @@ type CalendarConfig = {
|
|
|
271
275
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
272
276
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
273
277
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
+
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
274
279
|
|
|
275
280
|
type GradeData = {
|
|
276
281
|
name: string;
|
|
@@ -343,6 +348,8 @@ type TeachersWebCommon = {
|
|
|
343
348
|
LOGGLY_CUSTOMER_TOKEN: string;
|
|
344
349
|
TOLGEE_API_URL?: string;
|
|
345
350
|
TOLGEE_API_KEY?: string;
|
|
351
|
+
GOOGLE_TRANSLATE_URL: string;
|
|
352
|
+
GOOGLE_API_KEY: string;
|
|
346
353
|
};
|
|
347
354
|
type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
|
|
348
355
|
type TeachersWebVarsPreset = {
|
|
@@ -389,7 +396,11 @@ type SSO_DE = {
|
|
|
389
396
|
GOOGLE_AUTH: string;
|
|
390
397
|
MICROSOFT_AUTH: string;
|
|
391
398
|
};
|
|
392
|
-
type
|
|
399
|
+
type SSO_PL = {
|
|
400
|
+
GOOGLE_AUTH: string;
|
|
401
|
+
MICROSOFT_AUTH: string;
|
|
402
|
+
};
|
|
403
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
393
404
|
type SSOByLocale = {
|
|
394
405
|
[Locale.US]: SSO_US;
|
|
395
406
|
[Locale.CA]: SSO_US;
|
|
@@ -397,6 +408,7 @@ type SSOByLocale = {
|
|
|
397
408
|
[Locale.SCT]: SSO_UK;
|
|
398
409
|
[Locale.SE]: SSO_SE;
|
|
399
410
|
[Locale.DE]: SSO_DE;
|
|
411
|
+
[Locale.PL]: SSO_PL;
|
|
400
412
|
};
|
|
401
413
|
|
|
402
414
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -430,6 +442,9 @@ type AuthWebVarsPreset = {
|
|
|
430
442
|
[Locale.US]: {
|
|
431
443
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
432
444
|
};
|
|
445
|
+
[Locale.PL]: {
|
|
446
|
+
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
447
|
+
};
|
|
433
448
|
};
|
|
434
449
|
|
|
435
450
|
type MobileCommon = {
|
|
@@ -480,6 +495,9 @@ type MobileVarsPreset = {
|
|
|
480
495
|
[Locale.US]: {
|
|
481
496
|
[key in Environment]: MobileVars<SSO_US>;
|
|
482
497
|
};
|
|
498
|
+
[Locale.PL]: {
|
|
499
|
+
[key in Environment]: MobileVars<SSO_PL>;
|
|
500
|
+
};
|
|
483
501
|
};
|
|
484
502
|
|
|
485
503
|
type RegionSpecificWebAdminVars = {
|
|
@@ -787,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
787
805
|
isCanadian: boolean;
|
|
788
806
|
isScottish: boolean;
|
|
789
807
|
isGerman: boolean;
|
|
808
|
+
isPolish: boolean;
|
|
790
809
|
}>;
|
|
791
810
|
constructor(opts: ConfigOptions<P>);
|
|
792
811
|
private readonly syncConfigsStores;
|
|
@@ -802,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
802
821
|
isCanadian: boolean;
|
|
803
822
|
isScottish: boolean;
|
|
804
823
|
isGerman: boolean;
|
|
824
|
+
isPolish: boolean;
|
|
805
825
|
};
|
|
806
826
|
readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
|
|
807
827
|
readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
|
|
@@ -811,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
811
831
|
};
|
|
812
832
|
}
|
|
813
833
|
|
|
814
|
-
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, 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_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 };
|
|
834
|
+
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, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, 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_DE, type SSO_PL, 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 };
|