@magmamath/frontend-config 1.3.6-rc.0 → 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;
@@ -313,6 +318,7 @@ type RegionSpecificVars = {
313
318
  PARENT_WEB_URL: string;
314
319
  SOCKET_URL: string;
315
320
  STUDENTS_WEB_URL: string;
321
+ WEBSOCKETS_URL: string;
316
322
  TEACHERS_WEB_URL: string;
317
323
  };
318
324
 
@@ -366,7 +372,7 @@ type DistrictCommon = {
366
372
  TOLGEE_API_URL?: string;
367
373
  TOLGEE_API_KEY?: string;
368
374
  };
369
- type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
375
+ type DistrictDashboardVars = RegionSpecificVars & DistrictCommon;
370
376
  type DistrictWebVarsPreset = {
371
377
  [key in Locale]: {
372
378
  [key in Environment]: DistrictDashboardVars;
@@ -400,7 +406,8 @@ type SSO_PL = {
400
406
  GOOGLE_AUTH: string;
401
407
  MICROSOFT_AUTH: string;
402
408
  };
403
- 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;
404
411
  type SSOByLocale = {
405
412
  [Locale.US]: SSO_US;
406
413
  [Locale.CA]: SSO_US;
@@ -409,6 +416,7 @@ type SSOByLocale = {
409
416
  [Locale.SE]: SSO_SE;
410
417
  [Locale.DE]: SSO_DE;
411
418
  [Locale.PL]: SSO_PL;
419
+ [Locale.IT]: SSO_IT;
412
420
  };
413
421
 
414
422
  type Prettify<T> = T extends Function ? T : {
@@ -416,7 +424,7 @@ type Prettify<T> = T extends Function ? T : {
416
424
  };
417
425
 
418
426
  type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
419
- type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
427
+ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL' | 'WEBSOCKETS_URL'> & {
420
428
  TOS_URL: string;
421
429
  CLARITY_PROJECT_ID: string;
422
430
  INTERCOM_APP_ID: string;
@@ -445,6 +453,9 @@ type AuthWebVarsPreset = {
445
453
  [Locale.PL]: {
446
454
  [key in Environment]: AuthWebVars<SSO_PL>;
447
455
  };
456
+ [Locale.IT]: {
457
+ [key in Environment]: AuthWebVars<SSO_IT>;
458
+ };
448
459
  };
449
460
 
450
461
  type MobileCommon = {
@@ -472,6 +483,7 @@ type MobileBaseVars = {
472
483
  API_URL: string;
473
484
  CDN_HOST: string;
474
485
  SOCKET_URL: string;
486
+ WEBSOCKETS_URL: string;
475
487
  LOGGLY_TAG: string;
476
488
  PROBLEM_CREATOR_URL: string;
477
489
  } & MobileCommon;
@@ -498,12 +510,14 @@ type MobileVarsPreset = {
498
510
  [Locale.PL]: {
499
511
  [key in Environment]: MobileVars<SSO_PL>;
500
512
  };
513
+ [Locale.IT]: {
514
+ [key in Environment]: MobileVars<SSO_IT>;
515
+ };
501
516
  };
502
517
 
503
518
  type RegionSpecificWebAdminVars = {
504
519
  API_URL: string;
505
520
  CDN_HOST: string;
506
- CDN_HOST_TRANSLATIONS: string;
507
521
  STUDENTS_WEB_URL: string;
508
522
  DISTRICT_WEB_URL: string;
509
523
  TEACHERS_WEB_URL: string;
@@ -835,4 +849,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
835
849
  };
836
850
  }
837
851
 
838
- 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;
@@ -313,6 +318,7 @@ type RegionSpecificVars = {
313
318
  PARENT_WEB_URL: string;
314
319
  SOCKET_URL: string;
315
320
  STUDENTS_WEB_URL: string;
321
+ WEBSOCKETS_URL: string;
316
322
  TEACHERS_WEB_URL: string;
317
323
  };
318
324
 
@@ -366,7 +372,7 @@ type DistrictCommon = {
366
372
  TOLGEE_API_URL?: string;
367
373
  TOLGEE_API_KEY?: string;
368
374
  };
369
- type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
375
+ type DistrictDashboardVars = RegionSpecificVars & DistrictCommon;
370
376
  type DistrictWebVarsPreset = {
371
377
  [key in Locale]: {
372
378
  [key in Environment]: DistrictDashboardVars;
@@ -400,7 +406,8 @@ type SSO_PL = {
400
406
  GOOGLE_AUTH: string;
401
407
  MICROSOFT_AUTH: string;
402
408
  };
403
- 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;
404
411
  type SSOByLocale = {
405
412
  [Locale.US]: SSO_US;
406
413
  [Locale.CA]: SSO_US;
@@ -409,6 +416,7 @@ type SSOByLocale = {
409
416
  [Locale.SE]: SSO_SE;
410
417
  [Locale.DE]: SSO_DE;
411
418
  [Locale.PL]: SSO_PL;
419
+ [Locale.IT]: SSO_IT;
412
420
  };
413
421
 
414
422
  type Prettify<T> = T extends Function ? T : {
@@ -416,7 +424,7 @@ type Prettify<T> = T extends Function ? T : {
416
424
  };
417
425
 
418
426
  type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
419
- type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
427
+ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL' | 'WEBSOCKETS_URL'> & {
420
428
  TOS_URL: string;
421
429
  CLARITY_PROJECT_ID: string;
422
430
  INTERCOM_APP_ID: string;
@@ -445,6 +453,9 @@ type AuthWebVarsPreset = {
445
453
  [Locale.PL]: {
446
454
  [key in Environment]: AuthWebVars<SSO_PL>;
447
455
  };
456
+ [Locale.IT]: {
457
+ [key in Environment]: AuthWebVars<SSO_IT>;
458
+ };
448
459
  };
449
460
 
450
461
  type MobileCommon = {
@@ -472,6 +483,7 @@ type MobileBaseVars = {
472
483
  API_URL: string;
473
484
  CDN_HOST: string;
474
485
  SOCKET_URL: string;
486
+ WEBSOCKETS_URL: string;
475
487
  LOGGLY_TAG: string;
476
488
  PROBLEM_CREATOR_URL: string;
477
489
  } & MobileCommon;
@@ -498,12 +510,14 @@ type MobileVarsPreset = {
498
510
  [Locale.PL]: {
499
511
  [key in Environment]: MobileVars<SSO_PL>;
500
512
  };
513
+ [Locale.IT]: {
514
+ [key in Environment]: MobileVars<SSO_IT>;
515
+ };
501
516
  };
502
517
 
503
518
  type RegionSpecificWebAdminVars = {
504
519
  API_URL: string;
505
520
  CDN_HOST: string;
506
- CDN_HOST_TRANSLATIONS: string;
507
521
  STUDENTS_WEB_URL: string;
508
522
  DISTRICT_WEB_URL: string;
509
523
  TEACHERS_WEB_URL: string;
@@ -835,4 +849,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
835
849
  };
836
850
  }
837
851
 
838
- 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 };