@magmamath/frontend-config 1.2.0 → 1.2.1-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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,3 @@
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-ClvjFWRr.mjs';
2
- export { c as Source } from './common.constants-ClvjFWRr.mjs';
3
1
  import { ComponentType } from 'react';
4
2
  import * as effector from 'effector';
5
3
 
@@ -39,6 +37,86 @@ declare const MomentDateLocale: {
39
37
  DE: string;
40
38
  };
41
39
 
40
+ declare enum Platform {
41
+ STUDENTS_WEB = "STUDENTS",
42
+ TEACHERS_WEB = "TEACHERS",
43
+ DISTRICT_DASHBOARD = "DISTRICT",
44
+ AUTH_WEB = "AUTH_WEB",
45
+ WEB_ADMIN = "WEB_ADMIN",
46
+ MOBILE = "MOBILE"
47
+ }
48
+ declare enum Environment {
49
+ MARS = "MARS",
50
+ VENUS = "VENUS",
51
+ PROD = "PROD"
52
+ }
53
+ declare enum PlatformBuildTarget {
54
+ PLUTO = "pluto",
55
+ MARS = "mars",
56
+ VENUS = "pre-release",
57
+ PROD = "production"
58
+ }
59
+ declare enum Locale {
60
+ US = "en-SE",
61
+ SE = "sv-SE",
62
+ GB = "en-GB",
63
+ CA = "en-CA",
64
+ SCT = "en-SCT",
65
+ DE = "de-DE"
66
+ }
67
+ declare enum Source {
68
+ MATTEAPPEN = 0,
69
+ SKOLON = 1,
70
+ SKOLFEDERATION = 2,
71
+ GOOGLE = 3,
72
+ MICROSOFT = 4,
73
+ CLEVER = 5,
74
+ APPLE = 6,
75
+ MATHSYNC = 7,
76
+ CLASSLINK = 8,
77
+ EDUCLOUD = 9,
78
+ EGIL = 10,
79
+ WONDE = 12,
80
+ SCHOOLOGY = 13,
81
+ SEEMIS = 14,
82
+ IMPORT = 15,
83
+ CANVAS = 16
84
+ }
85
+ declare enum LoginSource {
86
+ MAGMA = 0,
87
+ CLEVER = 1,
88
+ CLASS_LINK = 2,
89
+ SKOLON = 3,
90
+ SKOLFEDERATION = 4,
91
+ GOOGLE = 5,
92
+ MICROSOFT = 6,
93
+ APPLE = 7,
94
+ SCHOOLOGY = 8,
95
+ MY_LOGIN = 9
96
+ }
97
+ declare enum SSO {
98
+ APPLE = "APPLE",
99
+ GOOGLE = "GOOGLE",
100
+ MICROSOFT = "MICROSOFT",
101
+ CLEVER = "CLEVER",
102
+ SCHOOLOGY = "SCHOOLOGY",
103
+ CLASS_LINK = "CLASS_LINK",
104
+ SKOLFEDERATION = "SKOLFEDERATION",
105
+ SKOLON = "SKOLON",
106
+ WONDE = "WONDE",
107
+ CANVAS = "CANVAS",
108
+ QR_CODE = "QR_CODE"
109
+ }
110
+ declare enum ApiRegion {
111
+ MAIN = "MAIN",
112
+ CANADA = "CANADA"
113
+ }
114
+ declare enum QRCodeSize {
115
+ DEFAULT = "default",
116
+ MEDIUM = "medium",
117
+ LARGE = "large"
118
+ }
119
+
42
120
  declare enum MatrixMode {
43
121
  SKILL = "SKILL",
44
122
  STANDARD = "STANDARD"
@@ -301,7 +379,6 @@ type RegionSpecificVars = {
301
379
  API_URL: string;
302
380
  AUTH_WEB_URL: string;
303
381
  CDN_HOST: string;
304
- CDN_HOST_TRANSLATIONS: string;
305
382
  DISTRICT_WEB_URL: string;
306
383
  LOGGLY_TAG: string;
307
384
  MAGMAMATH_URL: string;
@@ -311,7 +388,6 @@ type RegionSpecificVars = {
311
388
  };
312
389
 
313
390
  type StudentsWebCommon = {
314
- CDN_HOST_TRANSLATIONS: string;
315
391
  GOOGLE_API_KEY: string;
316
392
  DESMOS_API_KEY: string;
317
393
  LOGGLY_CUSTOMER_TOKEN: string;
@@ -321,8 +397,6 @@ type StudentsWebCommon = {
321
397
  MYSCRIPT_SOCKET_KEY: string;
322
398
  MYSCRIPT_REST_APP_KEY: string;
323
399
  MYSCRIPT_REST_HMAC_KEY: string;
324
- TOLGEE_API_URL?: string;
325
- TOLGEE_API_KEY?: string;
326
400
  };
327
401
  type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
328
402
  type StudentsWebVarsPreset = {
@@ -332,7 +406,6 @@ type StudentsWebVarsPreset = {
332
406
  };
333
407
 
334
408
  type TeachersWebCommon = {
335
- CDN_HOST_TRANSLATIONS: string;
336
409
  MYSCRIPT_HOST: string;
337
410
  MYSCRIPT_REST_APP_KEY: string;
338
411
  MYSCRIPT_REST_HMAC_KEY: string;
@@ -340,8 +413,6 @@ type TeachersWebCommon = {
340
413
  INTERCOM_APP_ID: string;
341
414
  CLARITY_PROJECT_ID: string;
342
415
  LOGGLY_CUSTOMER_TOKEN: string;
343
- TOLGEE_API_URL?: string;
344
- TOLGEE_API_KEY?: string;
345
416
  };
346
417
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
347
418
  type TeachersWebVarsPreset = {
@@ -351,12 +422,9 @@ type TeachersWebVarsPreset = {
351
422
  };
352
423
 
353
424
  type DistrictCommon = {
354
- CDN_HOST_TRANSLATIONS: string;
355
425
  INTERCOM_APP_ID: string;
356
426
  CLARITY_PROJECT_ID: string;
357
427
  PROBLEM_IMAGE_SIZE_LIMIT: number;
358
- TOLGEE_API_URL?: string;
359
- TOLGEE_API_KEY?: string;
360
428
  };
361
429
  type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
362
430
  type DistrictWebVarsPreset = {
@@ -407,8 +475,6 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
407
475
  TOS_URL: string;
408
476
  CLARITY_PROJECT_ID: string;
409
477
  INTERCOM_APP_ID: string;
410
- TOLGEE_API_URL?: string;
411
- TOLGEE_API_KEY?: string;
412
478
  };
413
479
  type AuthWebVarsPreset = {
414
480
  [Locale.CA]: {
@@ -432,9 +498,6 @@ type AuthWebVarsPreset = {
432
498
  };
433
499
 
434
500
  type MobileCommon = {
435
- CDN_HOST_TRANSLATIONS: string;
436
- TOLGEE_API_URL?: string;
437
- TOLGEE_API_KEY?: string;
438
501
  DESMOS_API_KEY: string;
439
502
  USER_AGENT: string;
440
503
  LOGGLY_CUSTOMER_TOKEN: string;
@@ -793,4 +856,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
793
856
  };
794
857
  }
795
858
 
796
- 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, 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 };
859
+ 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, 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, Source, 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,3 @@
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-ClvjFWRr.js';
2
- export { c as Source } from './common.constants-ClvjFWRr.js';
3
1
  import { ComponentType } from 'react';
4
2
  import * as effector from 'effector';
5
3
 
@@ -39,6 +37,86 @@ declare const MomentDateLocale: {
39
37
  DE: string;
40
38
  };
41
39
 
40
+ declare enum Platform {
41
+ STUDENTS_WEB = "STUDENTS",
42
+ TEACHERS_WEB = "TEACHERS",
43
+ DISTRICT_DASHBOARD = "DISTRICT",
44
+ AUTH_WEB = "AUTH_WEB",
45
+ WEB_ADMIN = "WEB_ADMIN",
46
+ MOBILE = "MOBILE"
47
+ }
48
+ declare enum Environment {
49
+ MARS = "MARS",
50
+ VENUS = "VENUS",
51
+ PROD = "PROD"
52
+ }
53
+ declare enum PlatformBuildTarget {
54
+ PLUTO = "pluto",
55
+ MARS = "mars",
56
+ VENUS = "pre-release",
57
+ PROD = "production"
58
+ }
59
+ declare enum Locale {
60
+ US = "en-SE",
61
+ SE = "sv-SE",
62
+ GB = "en-GB",
63
+ CA = "en-CA",
64
+ SCT = "en-SCT",
65
+ DE = "de-DE"
66
+ }
67
+ declare enum Source {
68
+ MATTEAPPEN = 0,
69
+ SKOLON = 1,
70
+ SKOLFEDERATION = 2,
71
+ GOOGLE = 3,
72
+ MICROSOFT = 4,
73
+ CLEVER = 5,
74
+ APPLE = 6,
75
+ MATHSYNC = 7,
76
+ CLASSLINK = 8,
77
+ EDUCLOUD = 9,
78
+ EGIL = 10,
79
+ WONDE = 12,
80
+ SCHOOLOGY = 13,
81
+ SEEMIS = 14,
82
+ IMPORT = 15,
83
+ CANVAS = 16
84
+ }
85
+ declare enum LoginSource {
86
+ MAGMA = 0,
87
+ CLEVER = 1,
88
+ CLASS_LINK = 2,
89
+ SKOLON = 3,
90
+ SKOLFEDERATION = 4,
91
+ GOOGLE = 5,
92
+ MICROSOFT = 6,
93
+ APPLE = 7,
94
+ SCHOOLOGY = 8,
95
+ MY_LOGIN = 9
96
+ }
97
+ declare enum SSO {
98
+ APPLE = "APPLE",
99
+ GOOGLE = "GOOGLE",
100
+ MICROSOFT = "MICROSOFT",
101
+ CLEVER = "CLEVER",
102
+ SCHOOLOGY = "SCHOOLOGY",
103
+ CLASS_LINK = "CLASS_LINK",
104
+ SKOLFEDERATION = "SKOLFEDERATION",
105
+ SKOLON = "SKOLON",
106
+ WONDE = "WONDE",
107
+ CANVAS = "CANVAS",
108
+ QR_CODE = "QR_CODE"
109
+ }
110
+ declare enum ApiRegion {
111
+ MAIN = "MAIN",
112
+ CANADA = "CANADA"
113
+ }
114
+ declare enum QRCodeSize {
115
+ DEFAULT = "default",
116
+ MEDIUM = "medium",
117
+ LARGE = "large"
118
+ }
119
+
42
120
  declare enum MatrixMode {
43
121
  SKILL = "SKILL",
44
122
  STANDARD = "STANDARD"
@@ -301,7 +379,6 @@ type RegionSpecificVars = {
301
379
  API_URL: string;
302
380
  AUTH_WEB_URL: string;
303
381
  CDN_HOST: string;
304
- CDN_HOST_TRANSLATIONS: string;
305
382
  DISTRICT_WEB_URL: string;
306
383
  LOGGLY_TAG: string;
307
384
  MAGMAMATH_URL: string;
@@ -311,7 +388,6 @@ type RegionSpecificVars = {
311
388
  };
312
389
 
313
390
  type StudentsWebCommon = {
314
- CDN_HOST_TRANSLATIONS: string;
315
391
  GOOGLE_API_KEY: string;
316
392
  DESMOS_API_KEY: string;
317
393
  LOGGLY_CUSTOMER_TOKEN: string;
@@ -321,8 +397,6 @@ type StudentsWebCommon = {
321
397
  MYSCRIPT_SOCKET_KEY: string;
322
398
  MYSCRIPT_REST_APP_KEY: string;
323
399
  MYSCRIPT_REST_HMAC_KEY: string;
324
- TOLGEE_API_URL?: string;
325
- TOLGEE_API_KEY?: string;
326
400
  };
327
401
  type StudentsWebVars = RegionSpecificVars & StudentsWebCommon;
328
402
  type StudentsWebVarsPreset = {
@@ -332,7 +406,6 @@ type StudentsWebVarsPreset = {
332
406
  };
333
407
 
334
408
  type TeachersWebCommon = {
335
- CDN_HOST_TRANSLATIONS: string;
336
409
  MYSCRIPT_HOST: string;
337
410
  MYSCRIPT_REST_APP_KEY: string;
338
411
  MYSCRIPT_REST_HMAC_KEY: string;
@@ -340,8 +413,6 @@ type TeachersWebCommon = {
340
413
  INTERCOM_APP_ID: string;
341
414
  CLARITY_PROJECT_ID: string;
342
415
  LOGGLY_CUSTOMER_TOKEN: string;
343
- TOLGEE_API_URL?: string;
344
- TOLGEE_API_KEY?: string;
345
416
  };
346
417
  type TeachersWebVars = RegionSpecificVars & TeachersWebCommon;
347
418
  type TeachersWebVarsPreset = {
@@ -351,12 +422,9 @@ type TeachersWebVarsPreset = {
351
422
  };
352
423
 
353
424
  type DistrictCommon = {
354
- CDN_HOST_TRANSLATIONS: string;
355
425
  INTERCOM_APP_ID: string;
356
426
  CLARITY_PROJECT_ID: string;
357
427
  PROBLEM_IMAGE_SIZE_LIMIT: number;
358
- TOLGEE_API_URL?: string;
359
- TOLGEE_API_KEY?: string;
360
428
  };
361
429
  type DistrictDashboardVars = Omit<RegionSpecificVars, 'SOCKET_URL'> & DistrictCommon;
362
430
  type DistrictWebVarsPreset = {
@@ -407,8 +475,6 @@ type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOC
407
475
  TOS_URL: string;
408
476
  CLARITY_PROJECT_ID: string;
409
477
  INTERCOM_APP_ID: string;
410
- TOLGEE_API_URL?: string;
411
- TOLGEE_API_KEY?: string;
412
478
  };
413
479
  type AuthWebVarsPreset = {
414
480
  [Locale.CA]: {
@@ -432,9 +498,6 @@ type AuthWebVarsPreset = {
432
498
  };
433
499
 
434
500
  type MobileCommon = {
435
- CDN_HOST_TRANSLATIONS: string;
436
- TOLGEE_API_URL?: string;
437
- TOLGEE_API_KEY?: string;
438
501
  DESMOS_API_KEY: string;
439
502
  USER_AGENT: string;
440
503
  LOGGLY_CUSTOMER_TOKEN: string;
@@ -793,4 +856,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
793
856
  };
794
857
  }
795
858
 
796
- 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, 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 };
859
+ 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, 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, Source, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };