@magmamath/frontend-config 1.3.4-rc.101 → 1.3.4-rc.102

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;
@@ -392,7 +397,11 @@ type SSO_DE = {
392
397
  GOOGLE_AUTH: string;
393
398
  MICROSOFT_AUTH: string;
394
399
  };
395
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
400
+ type SSO_PL = {
401
+ GOOGLE_AUTH: string;
402
+ MICROSOFT_AUTH: string;
403
+ };
404
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
396
405
  type SSOByLocale = {
397
406
  [Locale.US]: SSO_US;
398
407
  [Locale.CA]: SSO_US;
@@ -400,6 +409,7 @@ type SSOByLocale = {
400
409
  [Locale.SCT]: SSO_UK;
401
410
  [Locale.SE]: SSO_SE;
402
411
  [Locale.DE]: SSO_DE;
412
+ [Locale.PL]: SSO_PL;
403
413
  };
404
414
 
405
415
  type Prettify<T> = T extends Function ? T : {
@@ -433,6 +443,9 @@ type AuthWebVarsPreset = {
433
443
  [Locale.US]: {
434
444
  [key in Environment]: AuthWebVars<SSO_US>;
435
445
  };
446
+ [Locale.PL]: {
447
+ [key in Environment]: AuthWebVars<SSO_PL>;
448
+ };
436
449
  };
437
450
 
438
451
  type MobileCommon = {
@@ -484,6 +497,9 @@ type MobileVarsPreset = {
484
497
  [Locale.US]: {
485
498
  [key in Environment]: MobileVars<SSO_US>;
486
499
  };
500
+ [Locale.PL]: {
501
+ [key in Environment]: MobileVars<SSO_PL>;
502
+ };
487
503
  };
488
504
 
489
505
  type RegionSpecificWebAdminVars = {
@@ -537,7 +553,8 @@ declare enum KeyboardCurrencyVariant {
537
553
  DOLLAR_CENT = "DollarCent",
538
554
  POUND_PENCE = "PoundPence",
539
555
  KRONE_EURO_POUND = "KroneEuroPound",
540
- EURO_DOLLAR_POUND = "EuroDollarPound"
556
+ EURO_DOLLAR_POUND = "EuroDollarPound",
557
+ ZLOTY_GROSZ = "ZlotyGrosz"
541
558
  }
542
559
  declare enum KeyboardTimeVariant {
543
560
  H12 = "H12",
@@ -550,7 +567,8 @@ declare enum DrawboardCoinVariant {
550
567
  EURO = "euro",
551
568
  CA = "ca",
552
569
  UK = "uk",
553
- SE = "se"
570
+ SE = "se",
571
+ PL = "pl"
554
572
  }
555
573
 
556
574
  type KeyboardConfig = {
@@ -592,7 +610,8 @@ declare enum ProblemCreatorMathEntryVariant {
592
610
  DOLLAR = "Dollar",
593
611
  KRONE = "Krone",
594
612
  POUND_PENCE = "PoundPence",
595
- EURO = "Euro"
613
+ EURO = "Euro",
614
+ ZLOTY = "Zloty"
596
615
  }
597
616
  declare enum ProblemCreatorDescriptionVariant {
598
617
  EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
@@ -791,6 +810,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
791
810
  isCanadian: boolean;
792
811
  isScottish: boolean;
793
812
  isGerman: boolean;
813
+ isPolish: boolean;
794
814
  }>;
795
815
  constructor(opts: ConfigOptions<P>);
796
816
  private readonly syncConfigsStores;
@@ -806,6 +826,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
806
826
  isCanadian: boolean;
807
827
  isScottish: boolean;
808
828
  isGerman: boolean;
829
+ isPolish: boolean;
809
830
  };
810
831
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
811
832
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -815,4 +836,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
815
836
  };
816
837
  }
817
838
 
818
- 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 };
839
+ 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;
@@ -392,7 +397,11 @@ type SSO_DE = {
392
397
  GOOGLE_AUTH: string;
393
398
  MICROSOFT_AUTH: string;
394
399
  };
395
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE;
400
+ type SSO_PL = {
401
+ GOOGLE_AUTH: string;
402
+ MICROSOFT_AUTH: string;
403
+ };
404
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
396
405
  type SSOByLocale = {
397
406
  [Locale.US]: SSO_US;
398
407
  [Locale.CA]: SSO_US;
@@ -400,6 +409,7 @@ type SSOByLocale = {
400
409
  [Locale.SCT]: SSO_UK;
401
410
  [Locale.SE]: SSO_SE;
402
411
  [Locale.DE]: SSO_DE;
412
+ [Locale.PL]: SSO_PL;
403
413
  };
404
414
 
405
415
  type Prettify<T> = T extends Function ? T : {
@@ -433,6 +443,9 @@ type AuthWebVarsPreset = {
433
443
  [Locale.US]: {
434
444
  [key in Environment]: AuthWebVars<SSO_US>;
435
445
  };
446
+ [Locale.PL]: {
447
+ [key in Environment]: AuthWebVars<SSO_PL>;
448
+ };
436
449
  };
437
450
 
438
451
  type MobileCommon = {
@@ -484,6 +497,9 @@ type MobileVarsPreset = {
484
497
  [Locale.US]: {
485
498
  [key in Environment]: MobileVars<SSO_US>;
486
499
  };
500
+ [Locale.PL]: {
501
+ [key in Environment]: MobileVars<SSO_PL>;
502
+ };
487
503
  };
488
504
 
489
505
  type RegionSpecificWebAdminVars = {
@@ -537,7 +553,8 @@ declare enum KeyboardCurrencyVariant {
537
553
  DOLLAR_CENT = "DollarCent",
538
554
  POUND_PENCE = "PoundPence",
539
555
  KRONE_EURO_POUND = "KroneEuroPound",
540
- EURO_DOLLAR_POUND = "EuroDollarPound"
556
+ EURO_DOLLAR_POUND = "EuroDollarPound",
557
+ ZLOTY_GROSZ = "ZlotyGrosz"
541
558
  }
542
559
  declare enum KeyboardTimeVariant {
543
560
  H12 = "H12",
@@ -550,7 +567,8 @@ declare enum DrawboardCoinVariant {
550
567
  EURO = "euro",
551
568
  CA = "ca",
552
569
  UK = "uk",
553
- SE = "se"
570
+ SE = "se",
571
+ PL = "pl"
554
572
  }
555
573
 
556
574
  type KeyboardConfig = {
@@ -592,7 +610,8 @@ declare enum ProblemCreatorMathEntryVariant {
592
610
  DOLLAR = "Dollar",
593
611
  KRONE = "Krone",
594
612
  POUND_PENCE = "PoundPence",
595
- EURO = "Euro"
613
+ EURO = "Euro",
614
+ ZLOTY = "Zloty"
596
615
  }
597
616
  declare enum ProblemCreatorDescriptionVariant {
598
617
  EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
@@ -791,6 +810,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
791
810
  isCanadian: boolean;
792
811
  isScottish: boolean;
793
812
  isGerman: boolean;
813
+ isPolish: boolean;
794
814
  }>;
795
815
  constructor(opts: ConfigOptions<P>);
796
816
  private readonly syncConfigsStores;
@@ -806,6 +826,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
806
826
  isCanadian: boolean;
807
827
  isScottish: boolean;
808
828
  isGerman: boolean;
829
+ isPolish: boolean;
809
830
  };
810
831
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
811
832
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -815,4 +836,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
815
836
  };
816
837
  }
817
838
 
818
- 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 };
839
+ 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 };