@magmamath/frontend-config 1.3.4-rc.100 → 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;
@@ -344,6 +349,8 @@ type TeachersWebCommon = {
344
349
  LOGGLY_CUSTOMER_TOKEN: string;
345
350
  TOLGEE_API_URL?: string;
346
351
  TOLGEE_API_KEY?: string;
352
+ GOOGLE_TRANSLATE_URL: string;
353
+ GOOGLE_API_KEY: string;
347
354
  };
348
355
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
349
356
  type TeachersWebVarsPreset = {
@@ -390,7 +397,11 @@ type SSO_DE = {
390
397
  GOOGLE_AUTH: string;
391
398
  MICROSOFT_AUTH: string;
392
399
  };
393
- 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;
394
405
  type SSOByLocale = {
395
406
  [Locale.US]: SSO_US;
396
407
  [Locale.CA]: SSO_US;
@@ -398,6 +409,7 @@ type SSOByLocale = {
398
409
  [Locale.SCT]: SSO_UK;
399
410
  [Locale.SE]: SSO_SE;
400
411
  [Locale.DE]: SSO_DE;
412
+ [Locale.PL]: SSO_PL;
401
413
  };
402
414
 
403
415
  type Prettify<T> = T extends Function ? T : {
@@ -431,6 +443,9 @@ type AuthWebVarsPreset = {
431
443
  [Locale.US]: {
432
444
  [key in Environment]: AuthWebVars<SSO_US>;
433
445
  };
446
+ [Locale.PL]: {
447
+ [key in Environment]: AuthWebVars<SSO_PL>;
448
+ };
434
449
  };
435
450
 
436
451
  type MobileCommon = {
@@ -482,6 +497,9 @@ type MobileVarsPreset = {
482
497
  [Locale.US]: {
483
498
  [key in Environment]: MobileVars<SSO_US>;
484
499
  };
500
+ [Locale.PL]: {
501
+ [key in Environment]: MobileVars<SSO_PL>;
502
+ };
485
503
  };
486
504
 
487
505
  type RegionSpecificWebAdminVars = {
@@ -535,7 +553,8 @@ declare enum KeyboardCurrencyVariant {
535
553
  DOLLAR_CENT = "DollarCent",
536
554
  POUND_PENCE = "PoundPence",
537
555
  KRONE_EURO_POUND = "KroneEuroPound",
538
- EURO_DOLLAR_POUND = "EuroDollarPound"
556
+ EURO_DOLLAR_POUND = "EuroDollarPound",
557
+ ZLOTY_GROSZ = "ZlotyGrosz"
539
558
  }
540
559
  declare enum KeyboardTimeVariant {
541
560
  H12 = "H12",
@@ -548,7 +567,8 @@ declare enum DrawboardCoinVariant {
548
567
  EURO = "euro",
549
568
  CA = "ca",
550
569
  UK = "uk",
551
- SE = "se"
570
+ SE = "se",
571
+ PL = "pl"
552
572
  }
553
573
 
554
574
  type KeyboardConfig = {
@@ -590,7 +610,8 @@ declare enum ProblemCreatorMathEntryVariant {
590
610
  DOLLAR = "Dollar",
591
611
  KRONE = "Krone",
592
612
  POUND_PENCE = "PoundPence",
593
- EURO = "Euro"
613
+ EURO = "Euro",
614
+ ZLOTY = "Zloty"
594
615
  }
595
616
  declare enum ProblemCreatorDescriptionVariant {
596
617
  EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
@@ -789,6 +810,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
789
810
  isCanadian: boolean;
790
811
  isScottish: boolean;
791
812
  isGerman: boolean;
813
+ isPolish: boolean;
792
814
  }>;
793
815
  constructor(opts: ConfigOptions<P>);
794
816
  private readonly syncConfigsStores;
@@ -804,6 +826,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
804
826
  isCanadian: boolean;
805
827
  isScottish: boolean;
806
828
  isGerman: boolean;
829
+ isPolish: boolean;
807
830
  };
808
831
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
809
832
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -813,4 +836,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
813
836
  };
814
837
  }
815
838
 
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 };
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;
@@ -344,6 +349,8 @@ type TeachersWebCommon = {
344
349
  LOGGLY_CUSTOMER_TOKEN: string;
345
350
  TOLGEE_API_URL?: string;
346
351
  TOLGEE_API_KEY?: string;
352
+ GOOGLE_TRANSLATE_URL: string;
353
+ GOOGLE_API_KEY: string;
347
354
  };
348
355
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
349
356
  type TeachersWebVarsPreset = {
@@ -390,7 +397,11 @@ type SSO_DE = {
390
397
  GOOGLE_AUTH: string;
391
398
  MICROSOFT_AUTH: string;
392
399
  };
393
- 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;
394
405
  type SSOByLocale = {
395
406
  [Locale.US]: SSO_US;
396
407
  [Locale.CA]: SSO_US;
@@ -398,6 +409,7 @@ type SSOByLocale = {
398
409
  [Locale.SCT]: SSO_UK;
399
410
  [Locale.SE]: SSO_SE;
400
411
  [Locale.DE]: SSO_DE;
412
+ [Locale.PL]: SSO_PL;
401
413
  };
402
414
 
403
415
  type Prettify<T> = T extends Function ? T : {
@@ -431,6 +443,9 @@ type AuthWebVarsPreset = {
431
443
  [Locale.US]: {
432
444
  [key in Environment]: AuthWebVars<SSO_US>;
433
445
  };
446
+ [Locale.PL]: {
447
+ [key in Environment]: AuthWebVars<SSO_PL>;
448
+ };
434
449
  };
435
450
 
436
451
  type MobileCommon = {
@@ -482,6 +497,9 @@ type MobileVarsPreset = {
482
497
  [Locale.US]: {
483
498
  [key in Environment]: MobileVars<SSO_US>;
484
499
  };
500
+ [Locale.PL]: {
501
+ [key in Environment]: MobileVars<SSO_PL>;
502
+ };
485
503
  };
486
504
 
487
505
  type RegionSpecificWebAdminVars = {
@@ -535,7 +553,8 @@ declare enum KeyboardCurrencyVariant {
535
553
  DOLLAR_CENT = "DollarCent",
536
554
  POUND_PENCE = "PoundPence",
537
555
  KRONE_EURO_POUND = "KroneEuroPound",
538
- EURO_DOLLAR_POUND = "EuroDollarPound"
556
+ EURO_DOLLAR_POUND = "EuroDollarPound",
557
+ ZLOTY_GROSZ = "ZlotyGrosz"
539
558
  }
540
559
  declare enum KeyboardTimeVariant {
541
560
  H12 = "H12",
@@ -548,7 +567,8 @@ declare enum DrawboardCoinVariant {
548
567
  EURO = "euro",
549
568
  CA = "ca",
550
569
  UK = "uk",
551
- SE = "se"
570
+ SE = "se",
571
+ PL = "pl"
552
572
  }
553
573
 
554
574
  type KeyboardConfig = {
@@ -590,7 +610,8 @@ declare enum ProblemCreatorMathEntryVariant {
590
610
  DOLLAR = "Dollar",
591
611
  KRONE = "Krone",
592
612
  POUND_PENCE = "PoundPence",
593
- EURO = "Euro"
613
+ EURO = "Euro",
614
+ ZLOTY = "Zloty"
594
615
  }
595
616
  declare enum ProblemCreatorDescriptionVariant {
596
617
  EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
@@ -789,6 +810,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
789
810
  isCanadian: boolean;
790
811
  isScottish: boolean;
791
812
  isGerman: boolean;
813
+ isPolish: boolean;
792
814
  }>;
793
815
  constructor(opts: ConfigOptions<P>);
794
816
  private readonly syncConfigsStores;
@@ -804,6 +826,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
804
826
  isCanadian: boolean;
805
827
  isScottish: boolean;
806
828
  isGerman: boolean;
829
+ isPolish: boolean;
807
830
  };
808
831
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
809
832
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -813,4 +836,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
813
836
  };
814
837
  }
815
838
 
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 };
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 };