@magmamath/frontend-config 1.3.4-rc.6 → 1.3.5-rc.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.
@@ -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;
@@ -343,6 +348,8 @@ type TeachersWebCommon = {
343
348
  LOGGLY_CUSTOMER_TOKEN: string;
344
349
  TOLGEE_API_URL?: string;
345
350
  TOLGEE_API_KEY?: string;
351
+ GOOGLE_TRANSLATE_URL: string;
352
+ GOOGLE_API_KEY: string;
346
353
  };
347
354
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
348
355
  type TeachersWebVarsPreset = {
@@ -389,7 +396,11 @@ type SSO_DE = {
389
396
  GOOGLE_AUTH: string;
390
397
  MICROSOFT_AUTH: string;
391
398
  };
392
- 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;
393
404
  type SSOByLocale = {
394
405
  [Locale.US]: SSO_US;
395
406
  [Locale.CA]: SSO_US;
@@ -397,6 +408,7 @@ type SSOByLocale = {
397
408
  [Locale.SCT]: SSO_UK;
398
409
  [Locale.SE]: SSO_SE;
399
410
  [Locale.DE]: SSO_DE;
411
+ [Locale.PL]: SSO_PL;
400
412
  };
401
413
 
402
414
  type Prettify<T> = T extends Function ? T : {
@@ -430,6 +442,9 @@ type AuthWebVarsPreset = {
430
442
  [Locale.US]: {
431
443
  [key in Environment]: AuthWebVars<SSO_US>;
432
444
  };
445
+ [Locale.PL]: {
446
+ [key in Environment]: AuthWebVars<SSO_PL>;
447
+ };
433
448
  };
434
449
 
435
450
  type MobileCommon = {
@@ -480,6 +495,9 @@ type MobileVarsPreset = {
480
495
  [Locale.US]: {
481
496
  [key in Environment]: MobileVars<SSO_US>;
482
497
  };
498
+ [Locale.PL]: {
499
+ [key in Environment]: MobileVars<SSO_PL>;
500
+ };
483
501
  };
484
502
 
485
503
  type RegionSpecificWebAdminVars = {
@@ -787,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
787
805
  isCanadian: boolean;
788
806
  isScottish: boolean;
789
807
  isGerman: boolean;
808
+ isPolish: boolean;
790
809
  }>;
791
810
  constructor(opts: ConfigOptions<P>);
792
811
  private readonly syncConfigsStores;
@@ -802,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
802
821
  isCanadian: boolean;
803
822
  isScottish: boolean;
804
823
  isGerman: boolean;
824
+ isPolish: boolean;
805
825
  };
806
826
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
807
827
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -811,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
811
831
  };
812
832
  }
813
833
 
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 };
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;
@@ -343,6 +348,8 @@ type TeachersWebCommon = {
343
348
  LOGGLY_CUSTOMER_TOKEN: string;
344
349
  TOLGEE_API_URL?: string;
345
350
  TOLGEE_API_KEY?: string;
351
+ GOOGLE_TRANSLATE_URL: string;
352
+ GOOGLE_API_KEY: string;
346
353
  };
347
354
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
348
355
  type TeachersWebVarsPreset = {
@@ -389,7 +396,11 @@ type SSO_DE = {
389
396
  GOOGLE_AUTH: string;
390
397
  MICROSOFT_AUTH: string;
391
398
  };
392
- 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;
393
404
  type SSOByLocale = {
394
405
  [Locale.US]: SSO_US;
395
406
  [Locale.CA]: SSO_US;
@@ -397,6 +408,7 @@ type SSOByLocale = {
397
408
  [Locale.SCT]: SSO_UK;
398
409
  [Locale.SE]: SSO_SE;
399
410
  [Locale.DE]: SSO_DE;
411
+ [Locale.PL]: SSO_PL;
400
412
  };
401
413
 
402
414
  type Prettify<T> = T extends Function ? T : {
@@ -430,6 +442,9 @@ type AuthWebVarsPreset = {
430
442
  [Locale.US]: {
431
443
  [key in Environment]: AuthWebVars<SSO_US>;
432
444
  };
445
+ [Locale.PL]: {
446
+ [key in Environment]: AuthWebVars<SSO_PL>;
447
+ };
433
448
  };
434
449
 
435
450
  type MobileCommon = {
@@ -480,6 +495,9 @@ type MobileVarsPreset = {
480
495
  [Locale.US]: {
481
496
  [key in Environment]: MobileVars<SSO_US>;
482
497
  };
498
+ [Locale.PL]: {
499
+ [key in Environment]: MobileVars<SSO_PL>;
500
+ };
483
501
  };
484
502
 
485
503
  type RegionSpecificWebAdminVars = {
@@ -787,6 +805,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
787
805
  isCanadian: boolean;
788
806
  isScottish: boolean;
789
807
  isGerman: boolean;
808
+ isPolish: boolean;
790
809
  }>;
791
810
  constructor(opts: ConfigOptions<P>);
792
811
  private readonly syncConfigsStores;
@@ -802,6 +821,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
802
821
  isCanadian: boolean;
803
822
  isScottish: boolean;
804
823
  isGerman: boolean;
824
+ isPolish: boolean;
805
825
  };
806
826
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
807
827
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
@@ -811,4 +831,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
811
831
  };
812
832
  }
813
833
 
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 };
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 };