@magmamath/frontend-config 1.2.3-rc.4 → 1.3.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-DM-Bg4xS.d.mts → common.constants-Dy4DFaEM.d.mts} +1 -2
- package/dist/{common.constants-DM-Bg4xS.d.ts → common.constants-Dy4DFaEM.d.ts} +1 -2
- package/dist/index.d.mts +5 -21
- package/dist/index.d.ts +5 -21
- package/dist/index.js +9 -501
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -501
- package/dist/index.mjs.map +1 -1
- package/dist/translation/index.d.mts +1 -1
- package/dist/translation/index.d.ts +1 -1
- package/package.json +4 -10
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-Dy4DFaEM.mjs';
|
|
2
|
+
export { c as Source } from './common.constants-Dy4DFaEM.mjs';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import * as effector from 'effector';
|
|
5
5
|
|
|
@@ -31,15 +31,12 @@ 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";
|
|
36
34
|
};
|
|
37
35
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
38
36
|
declare const MomentDateLocale: {
|
|
39
37
|
GB: string;
|
|
40
38
|
SE: string;
|
|
41
39
|
DE: string;
|
|
42
|
-
PL: string;
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
declare enum MatrixMode {
|
|
@@ -260,8 +257,7 @@ declare enum WeekStart {
|
|
|
260
257
|
declare enum CalendarLocale {
|
|
261
258
|
EN = "en",
|
|
262
259
|
SE = "sv",
|
|
263
|
-
DE = "de"
|
|
264
|
-
PL = "pl"
|
|
260
|
+
DE = "de"
|
|
265
261
|
}
|
|
266
262
|
type CalendarConfig = {
|
|
267
263
|
locale: CalendarLocale;
|
|
@@ -275,7 +271,6 @@ type CalendarConfig = {
|
|
|
275
271
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
276
272
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
277
273
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
-
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
279
274
|
|
|
280
275
|
type GradeData = {
|
|
281
276
|
name: string;
|
|
@@ -394,11 +389,7 @@ type SSO_DE = {
|
|
|
394
389
|
GOOGLE_AUTH: string;
|
|
395
390
|
MICROSOFT_AUTH: string;
|
|
396
391
|
};
|
|
397
|
-
type
|
|
398
|
-
GOOGLE_AUTH: string;
|
|
399
|
-
MICROSOFT_AUTH: string;
|
|
400
|
-
};
|
|
401
|
-
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
392
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
|
|
402
393
|
type SSOByLocale = {
|
|
403
394
|
[Locale.US]: SSO_US;
|
|
404
395
|
[Locale.CA]: SSO_US;
|
|
@@ -406,7 +397,6 @@ type SSOByLocale = {
|
|
|
406
397
|
[Locale.SCT]: SSO_UK;
|
|
407
398
|
[Locale.SE]: SSO_SE;
|
|
408
399
|
[Locale.DE]: SSO_DE;
|
|
409
|
-
[Locale.PL]: SSO_PL;
|
|
410
400
|
};
|
|
411
401
|
|
|
412
402
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -440,9 +430,6 @@ type AuthWebVarsPreset = {
|
|
|
440
430
|
[Locale.US]: {
|
|
441
431
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
442
432
|
};
|
|
443
|
-
[Locale.PL]: {
|
|
444
|
-
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
445
|
-
};
|
|
446
433
|
};
|
|
447
434
|
|
|
448
435
|
type MobileCommon = {
|
|
@@ -493,9 +480,6 @@ type MobileVarsPreset = {
|
|
|
493
480
|
[Locale.US]: {
|
|
494
481
|
[key in Environment]: MobileVars<SSO_US>;
|
|
495
482
|
};
|
|
496
|
-
[Locale.PL]: {
|
|
497
|
-
[key in Environment]: MobileVars<SSO_PL>;
|
|
498
|
-
};
|
|
499
483
|
};
|
|
500
484
|
|
|
501
485
|
type RegionSpecificWebAdminVars = {
|
|
@@ -827,4 +811,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
827
811
|
};
|
|
828
812
|
}
|
|
829
813
|
|
|
830
|
-
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,
|
|
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 };
|
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-Dy4DFaEM.js';
|
|
2
|
+
export { c as Source } from './common.constants-Dy4DFaEM.js';
|
|
3
3
|
import { ComponentType } from 'react';
|
|
4
4
|
import * as effector from 'effector';
|
|
5
5
|
|
|
@@ -31,15 +31,12 @@ 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";
|
|
36
34
|
};
|
|
37
35
|
type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
|
|
38
36
|
declare const MomentDateLocale: {
|
|
39
37
|
GB: string;
|
|
40
38
|
SE: string;
|
|
41
39
|
DE: string;
|
|
42
|
-
PL: string;
|
|
43
40
|
};
|
|
44
41
|
|
|
45
42
|
declare enum MatrixMode {
|
|
@@ -260,8 +257,7 @@ declare enum WeekStart {
|
|
|
260
257
|
declare enum CalendarLocale {
|
|
261
258
|
EN = "en",
|
|
262
259
|
SE = "sv",
|
|
263
|
-
DE = "de"
|
|
264
|
-
PL = "pl"
|
|
260
|
+
DE = "de"
|
|
265
261
|
}
|
|
266
262
|
type CalendarConfig = {
|
|
267
263
|
locale: CalendarLocale;
|
|
@@ -275,7 +271,6 @@ type CalendarConfig = {
|
|
|
275
271
|
declare const EN_CALENDAR_CONFIG: CalendarConfig;
|
|
276
272
|
declare const SE_CALENDAR_CONFIG: CalendarConfig;
|
|
277
273
|
declare const DE_CALENDAR_CONFIG: CalendarConfig;
|
|
278
|
-
declare const PL_CALENDAR_CONFIG: CalendarConfig;
|
|
279
274
|
|
|
280
275
|
type GradeData = {
|
|
281
276
|
name: string;
|
|
@@ -394,11 +389,7 @@ type SSO_DE = {
|
|
|
394
389
|
GOOGLE_AUTH: string;
|
|
395
390
|
MICROSOFT_AUTH: string;
|
|
396
391
|
};
|
|
397
|
-
type
|
|
398
|
-
GOOGLE_AUTH: string;
|
|
399
|
-
MICROSOFT_AUTH: string;
|
|
400
|
-
};
|
|
401
|
-
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
|
|
392
|
+
type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
|
|
402
393
|
type SSOByLocale = {
|
|
403
394
|
[Locale.US]: SSO_US;
|
|
404
395
|
[Locale.CA]: SSO_US;
|
|
@@ -406,7 +397,6 @@ type SSOByLocale = {
|
|
|
406
397
|
[Locale.SCT]: SSO_UK;
|
|
407
398
|
[Locale.SE]: SSO_SE;
|
|
408
399
|
[Locale.DE]: SSO_DE;
|
|
409
|
-
[Locale.PL]: SSO_PL;
|
|
410
400
|
};
|
|
411
401
|
|
|
412
402
|
type Prettify<T> = T extends Function ? T : {
|
|
@@ -440,9 +430,6 @@ type AuthWebVarsPreset = {
|
|
|
440
430
|
[Locale.US]: {
|
|
441
431
|
[key in Environment]: AuthWebVars<SSO_US>;
|
|
442
432
|
};
|
|
443
|
-
[Locale.PL]: {
|
|
444
|
-
[key in Environment]: AuthWebVars<SSO_PL>;
|
|
445
|
-
};
|
|
446
433
|
};
|
|
447
434
|
|
|
448
435
|
type MobileCommon = {
|
|
@@ -493,9 +480,6 @@ type MobileVarsPreset = {
|
|
|
493
480
|
[Locale.US]: {
|
|
494
481
|
[key in Environment]: MobileVars<SSO_US>;
|
|
495
482
|
};
|
|
496
|
-
[Locale.PL]: {
|
|
497
|
-
[key in Environment]: MobileVars<SSO_PL>;
|
|
498
|
-
};
|
|
499
483
|
};
|
|
500
484
|
|
|
501
485
|
type RegionSpecificWebAdminVars = {
|
|
@@ -827,4 +811,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
827
811
|
};
|
|
828
812
|
}
|
|
829
813
|
|
|
830
|
-
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,
|
|
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 };
|