@magmamath/frontend-config 1.2.0 → 1.2.2-rc.0

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.
@@ -23,7 +23,8 @@ declare enum Locale {
23
23
  GB = "en-GB",
24
24
  CA = "en-CA",
25
25
  SCT = "en-SCT",
26
- DE = "de-DE"
26
+ DE = "de-DE",
27
+ PL = "pl-PL"
27
28
  }
28
29
  declare enum Source {
29
30
  MATTEAPPEN = 0,
@@ -23,7 +23,8 @@ declare enum Locale {
23
23
  GB = "en-GB",
24
24
  CA = "en-CA",
25
25
  SCT = "en-SCT",
26
- DE = "de-DE"
26
+ DE = "de-DE",
27
+ PL = "pl-PL"
27
28
  }
28
29
  declare enum Source {
29
30
  MATTEAPPEN = 0,
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-ClvjFWRr.mjs';
2
- export { c as Source } from './common.constants-ClvjFWRr.mjs';
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-B88CwNGl.mjs';
2
+ export { c as Source } from './common.constants-B88CwNGl.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;
@@ -388,7 +393,11 @@ type SSO_DE = {
388
393
  GOOGLE_AUTH: string;
389
394
  MICROSOFT_AUTH: string;
390
395
  };
391
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
396
+ type SSO_PL = {
397
+ GOOGLE_AUTH: string;
398
+ MICROSOFT_AUTH: string;
399
+ };
400
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
392
401
  type SSOByLocale = {
393
402
  [Locale.US]: SSO_US;
394
403
  [Locale.CA]: SSO_US;
@@ -396,6 +405,7 @@ type SSOByLocale = {
396
405
  [Locale.SCT]: SSO_UK;
397
406
  [Locale.SE]: SSO_SE;
398
407
  [Locale.DE]: SSO_DE;
408
+ [Locale.PL]: SSO_PL;
399
409
  };
400
410
 
401
411
  type Prettify<T> = T extends Function ? T : {
@@ -429,6 +439,9 @@ type AuthWebVarsPreset = {
429
439
  [Locale.US]: {
430
440
  [key in Environment]: AuthWebVars<SSO_US>;
431
441
  };
442
+ [Locale.PL]: {
443
+ [key in Environment]: AuthWebVars<SSO_PL>;
444
+ };
432
445
  };
433
446
 
434
447
  type MobileCommon = {
@@ -479,6 +492,9 @@ type MobileVarsPreset = {
479
492
  [Locale.US]: {
480
493
  [key in Environment]: MobileVars<SSO_US>;
481
494
  };
495
+ [Locale.PL]: {
496
+ [key in Environment]: MobileVars<SSO_PL>;
497
+ };
482
498
  };
483
499
 
484
500
  type RegionSpecificWebAdminVars = {
@@ -793,4 +809,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
793
809
  };
794
810
  }
795
811
 
796
- 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, 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 };
812
+ 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, 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-ClvjFWRr.js';
2
- export { c as Source } from './common.constants-ClvjFWRr.js';
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-B88CwNGl.js';
2
+ export { c as Source } from './common.constants-B88CwNGl.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;
@@ -388,7 +393,11 @@ type SSO_DE = {
388
393
  GOOGLE_AUTH: string;
389
394
  MICROSOFT_AUTH: string;
390
395
  };
391
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
396
+ type SSO_PL = {
397
+ GOOGLE_AUTH: string;
398
+ MICROSOFT_AUTH: string;
399
+ };
400
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
392
401
  type SSOByLocale = {
393
402
  [Locale.US]: SSO_US;
394
403
  [Locale.CA]: SSO_US;
@@ -396,6 +405,7 @@ type SSOByLocale = {
396
405
  [Locale.SCT]: SSO_UK;
397
406
  [Locale.SE]: SSO_SE;
398
407
  [Locale.DE]: SSO_DE;
408
+ [Locale.PL]: SSO_PL;
399
409
  };
400
410
 
401
411
  type Prettify<T> = T extends Function ? T : {
@@ -429,6 +439,9 @@ type AuthWebVarsPreset = {
429
439
  [Locale.US]: {
430
440
  [key in Environment]: AuthWebVars<SSO_US>;
431
441
  };
442
+ [Locale.PL]: {
443
+ [key in Environment]: AuthWebVars<SSO_PL>;
444
+ };
432
445
  };
433
446
 
434
447
  type MobileCommon = {
@@ -479,6 +492,9 @@ type MobileVarsPreset = {
479
492
  [Locale.US]: {
480
493
  [key in Environment]: MobileVars<SSO_US>;
481
494
  };
495
+ [Locale.PL]: {
496
+ [key in Environment]: MobileVars<SSO_PL>;
497
+ };
482
498
  };
483
499
 
484
500
  type RegionSpecificWebAdminVars = {
@@ -793,4 +809,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
793
809
  };
794
810
  }
795
811
 
796
- 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, 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 };
812
+ 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, 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 };