@magmamath/frontend-config 1.3.4 → 1.3.5-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.
@@ -24,7 +24,8 @@ declare enum Locale {
24
24
  GB = "en-GB",
25
25
  CA = "en-CA",
26
26
  SCT = "en-SCT",
27
- DE = "de-DE"
27
+ DE = "de-DE",
28
+ PL = "pl-PL"
28
29
  }
29
30
  declare enum Source {
30
31
  MATTEAPPEN = 0,
@@ -24,7 +24,8 @@ declare enum Locale {
24
24
  GB = "en-GB",
25
25
  CA = "en-CA",
26
26
  SCT = "en-SCT",
27
- DE = "de-DE"
27
+ DE = "de-DE",
28
+ PL = "pl-PL"
28
29
  }
29
30
  declare enum Source {
30
31
  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-Dy4DFaEM.mjs';
2
- export { c as Source } from './common.constants-Dy4DFaEM.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-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;
@@ -391,7 +396,11 @@ type SSO_DE = {
391
396
  GOOGLE_AUTH: string;
392
397
  MICROSOFT_AUTH: string;
393
398
  };
394
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
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;
395
404
  type SSOByLocale = {
396
405
  [Locale.US]: SSO_US;
397
406
  [Locale.CA]: SSO_US;
@@ -399,6 +408,7 @@ type SSOByLocale = {
399
408
  [Locale.SCT]: SSO_UK;
400
409
  [Locale.SE]: SSO_SE;
401
410
  [Locale.DE]: SSO_DE;
411
+ [Locale.PL]: SSO_PL;
402
412
  };
403
413
 
404
414
  type Prettify<T> = T extends Function ? T : {
@@ -432,6 +442,9 @@ type AuthWebVarsPreset = {
432
442
  [Locale.US]: {
433
443
  [key in Environment]: AuthWebVars<SSO_US>;
434
444
  };
445
+ [Locale.PL]: {
446
+ [key in Environment]: AuthWebVars<SSO_PL>;
447
+ };
435
448
  };
436
449
 
437
450
  type MobileCommon = {
@@ -482,6 +495,9 @@ type MobileVarsPreset = {
482
495
  [Locale.US]: {
483
496
  [key in Environment]: MobileVars<SSO_US>;
484
497
  };
498
+ [Locale.PL]: {
499
+ [key in Environment]: MobileVars<SSO_PL>;
500
+ };
485
501
  };
486
502
 
487
503
  type RegionSpecificWebAdminVars = {
@@ -789,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
789
805
  isCanadian: boolean;
790
806
  isScottish: boolean;
791
807
  isGerman: boolean;
808
+ isPolish: boolean;
792
809
  }>;
793
810
  constructor(opts: ConfigOptions<P>);
794
811
  private readonly syncConfigsStores;
@@ -804,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
804
821
  isCanadian: boolean;
805
822
  isScottish: boolean;
806
823
  isGerman: boolean;
824
+ isPolish: boolean;
807
825
  };
808
826
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
809
827
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -813,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
813
831
  };
814
832
  }
815
833
 
816
- 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-Dy4DFaEM.js';
2
- export { c as Source } from './common.constants-Dy4DFaEM.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-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;
@@ -391,7 +396,11 @@ type SSO_DE = {
391
396
  GOOGLE_AUTH: string;
392
397
  MICROSOFT_AUTH: string;
393
398
  };
394
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
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;
395
404
  type SSOByLocale = {
396
405
  [Locale.US]: SSO_US;
397
406
  [Locale.CA]: SSO_US;
@@ -399,6 +408,7 @@ type SSOByLocale = {
399
408
  [Locale.SCT]: SSO_UK;
400
409
  [Locale.SE]: SSO_SE;
401
410
  [Locale.DE]: SSO_DE;
411
+ [Locale.PL]: SSO_PL;
402
412
  };
403
413
 
404
414
  type Prettify<T> = T extends Function ? T : {
@@ -432,6 +442,9 @@ type AuthWebVarsPreset = {
432
442
  [Locale.US]: {
433
443
  [key in Environment]: AuthWebVars<SSO_US>;
434
444
  };
445
+ [Locale.PL]: {
446
+ [key in Environment]: AuthWebVars<SSO_PL>;
447
+ };
435
448
  };
436
449
 
437
450
  type MobileCommon = {
@@ -482,6 +495,9 @@ type MobileVarsPreset = {
482
495
  [Locale.US]: {
483
496
  [key in Environment]: MobileVars<SSO_US>;
484
497
  };
498
+ [Locale.PL]: {
499
+ [key in Environment]: MobileVars<SSO_PL>;
500
+ };
485
501
  };
486
502
 
487
503
  type RegionSpecificWebAdminVars = {
@@ -789,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
789
805
  isCanadian: boolean;
790
806
  isScottish: boolean;
791
807
  isGerman: boolean;
808
+ isPolish: boolean;
792
809
  }>;
793
810
  constructor(opts: ConfigOptions<P>);
794
811
  private readonly syncConfigsStores;
@@ -804,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
804
821
  isCanadian: boolean;
805
822
  isScottish: boolean;
806
823
  isGerman: boolean;
824
+ isPolish: boolean;
807
825
  };
808
826
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
809
827
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -813,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
813
831
  };
814
832
  }
815
833
 
816
- 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 };