@magmamath/frontend-config 1.3.6 → 1.4.0-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.
@@ -25,7 +25,8 @@ declare enum Locale {
25
25
  CA = "en-CA",
26
26
  SCT = "en-SCT",
27
27
  DE = "de-DE",
28
- PL = "pl-PL"
28
+ PL = "pl-PL",
29
+ IT = "it-IT"
29
30
  }
30
31
  declare enum Source {
31
32
  MATTEAPPEN = 0,
@@ -25,7 +25,8 @@ declare enum Locale {
25
25
  CA = "en-CA",
26
26
  SCT = "en-SCT",
27
27
  DE = "de-DE",
28
- PL = "pl-PL"
28
+ PL = "pl-PL",
29
+ IT = "it-IT"
29
30
  }
30
31
  declare enum Source {
31
32
  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-DM-Bg4xS.mjs';
2
- export { c as Source } from './common.constants-DM-Bg4xS.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-CI3y8sgm.mjs';
2
+ export { c as Source } from './common.constants-CI3y8sgm.mjs';
3
3
  import { ComponentType } from 'react';
4
4
  import * as effector from 'effector';
5
5
 
@@ -33,6 +33,8 @@ declare const DateLocale: {
33
33
  readonly 'de-DE': "de";
34
34
  readonly PL: "pl";
35
35
  readonly 'pl-PL': "pl";
36
+ readonly IT: "it";
37
+ readonly 'it-IT': "it";
36
38
  };
37
39
  type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
38
40
  declare const MomentDateLocale: {
@@ -40,6 +42,7 @@ declare const MomentDateLocale: {
40
42
  SE: string;
41
43
  DE: string;
42
44
  PL: string;
45
+ IT: string;
43
46
  };
44
47
 
45
48
  declare enum MatrixMode {
@@ -261,7 +264,8 @@ declare enum CalendarLocale {
261
264
  EN = "en",
262
265
  SE = "sv",
263
266
  DE = "de",
264
- PL = "pl"
267
+ PL = "pl",
268
+ IT = "it"
265
269
  }
266
270
  type CalendarConfig = {
267
271
  locale: CalendarLocale;
@@ -276,6 +280,7 @@ declare const EN_CALENDAR_CONFIG: CalendarConfig;
276
280
  declare const SE_CALENDAR_CONFIG: CalendarConfig;
277
281
  declare const DE_CALENDAR_CONFIG: CalendarConfig;
278
282
  declare const PL_CALENDAR_CONFIG: CalendarConfig;
283
+ declare const IT_CALENDAR_CONFIG: CalendarConfig;
279
284
 
280
285
  type GradeData = {
281
286
  name: string;
@@ -401,7 +406,8 @@ type SSO_PL = {
401
406
  GOOGLE_AUTH: string;
402
407
  MICROSOFT_AUTH: string;
403
408
  };
404
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
409
+ type SSO_IT = {};
410
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL | SSO_IT;
405
411
  type SSOByLocale = {
406
412
  [Locale.US]: SSO_US;
407
413
  [Locale.CA]: SSO_US;
@@ -410,6 +416,7 @@ type SSOByLocale = {
410
416
  [Locale.SE]: SSO_SE;
411
417
  [Locale.DE]: SSO_DE;
412
418
  [Locale.PL]: SSO_PL;
419
+ [Locale.IT]: SSO_IT;
413
420
  };
414
421
 
415
422
  type Prettify<T> = T extends Function ? T : {
@@ -446,6 +453,9 @@ type AuthWebVarsPreset = {
446
453
  [Locale.PL]: {
447
454
  [key in Environment]: AuthWebVars<SSO_PL>;
448
455
  };
456
+ [Locale.IT]: {
457
+ [key in Environment]: AuthWebVars<SSO_IT>;
458
+ };
449
459
  };
450
460
 
451
461
  type MobileCommon = {
@@ -500,6 +510,9 @@ type MobileVarsPreset = {
500
510
  [Locale.PL]: {
501
511
  [key in Environment]: MobileVars<SSO_PL>;
502
512
  };
513
+ [Locale.IT]: {
514
+ [key in Environment]: MobileVars<SSO_IT>;
515
+ };
503
516
  };
504
517
 
505
518
  type RegionSpecificWebAdminVars = {
@@ -836,4 +849,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
836
849
  };
837
850
  }
838
851
 
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 };
852
+ 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, IT_CALENDAR_CONFIG, 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_IT, 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-DM-Bg4xS.js';
2
- export { c as Source } from './common.constants-DM-Bg4xS.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-CI3y8sgm.js';
2
+ export { c as Source } from './common.constants-CI3y8sgm.js';
3
3
  import { ComponentType } from 'react';
4
4
  import * as effector from 'effector';
5
5
 
@@ -33,6 +33,8 @@ declare const DateLocale: {
33
33
  readonly 'de-DE': "de";
34
34
  readonly PL: "pl";
35
35
  readonly 'pl-PL': "pl";
36
+ readonly IT: "it";
37
+ readonly 'it-IT': "it";
36
38
  };
37
39
  type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
38
40
  declare const MomentDateLocale: {
@@ -40,6 +42,7 @@ declare const MomentDateLocale: {
40
42
  SE: string;
41
43
  DE: string;
42
44
  PL: string;
45
+ IT: string;
43
46
  };
44
47
 
45
48
  declare enum MatrixMode {
@@ -261,7 +264,8 @@ declare enum CalendarLocale {
261
264
  EN = "en",
262
265
  SE = "sv",
263
266
  DE = "de",
264
- PL = "pl"
267
+ PL = "pl",
268
+ IT = "it"
265
269
  }
266
270
  type CalendarConfig = {
267
271
  locale: CalendarLocale;
@@ -276,6 +280,7 @@ declare const EN_CALENDAR_CONFIG: CalendarConfig;
276
280
  declare const SE_CALENDAR_CONFIG: CalendarConfig;
277
281
  declare const DE_CALENDAR_CONFIG: CalendarConfig;
278
282
  declare const PL_CALENDAR_CONFIG: CalendarConfig;
283
+ declare const IT_CALENDAR_CONFIG: CalendarConfig;
279
284
 
280
285
  type GradeData = {
281
286
  name: string;
@@ -401,7 +406,8 @@ type SSO_PL = {
401
406
  GOOGLE_AUTH: string;
402
407
  MICROSOFT_AUTH: string;
403
408
  };
404
- type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL;
409
+ type SSO_IT = {};
410
+ type SSOVariant = SSO_US | SSO_DE | SSO_UK | SSO_SE | SSO_PL | SSO_IT;
405
411
  type SSOByLocale = {
406
412
  [Locale.US]: SSO_US;
407
413
  [Locale.CA]: SSO_US;
@@ -410,6 +416,7 @@ type SSOByLocale = {
410
416
  [Locale.SE]: SSO_SE;
411
417
  [Locale.DE]: SSO_DE;
412
418
  [Locale.PL]: SSO_PL;
419
+ [Locale.IT]: SSO_IT;
413
420
  };
414
421
 
415
422
  type Prettify<T> = T extends Function ? T : {
@@ -446,6 +453,9 @@ type AuthWebVarsPreset = {
446
453
  [Locale.PL]: {
447
454
  [key in Environment]: AuthWebVars<SSO_PL>;
448
455
  };
456
+ [Locale.IT]: {
457
+ [key in Environment]: AuthWebVars<SSO_IT>;
458
+ };
449
459
  };
450
460
 
451
461
  type MobileCommon = {
@@ -500,6 +510,9 @@ type MobileVarsPreset = {
500
510
  [Locale.PL]: {
501
511
  [key in Environment]: MobileVars<SSO_PL>;
502
512
  };
513
+ [Locale.IT]: {
514
+ [key in Environment]: MobileVars<SSO_IT>;
515
+ };
503
516
  };
504
517
 
505
518
  type RegionSpecificWebAdminVars = {
@@ -836,4 +849,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
836
849
  };
837
850
  }
838
851
 
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 };
852
+ 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, IT_CALENDAR_CONFIG, 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_IT, 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 };