@magmamath/frontend-config 1.5.6 → 1.5.8-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
@@ -3,6 +3,14 @@ export { c as Source } from './common.constants-DG-ku2FP.mjs';
3
3
  import { ComponentType } from 'react';
4
4
  import * as effector from 'effector';
5
5
 
6
+ declare enum CalculatorType {
7
+ Off = 0,
8
+ Regular = 1,
9
+ Scientific = 2,
10
+ Graphic = 3,
11
+ Cas = 4
12
+ }
13
+
6
14
  declare enum DateFormat {
7
15
  FULL = "YYYY-MM-DD HH:mm",
8
16
  FULL_US = "YYYY-MM-DD hh:mm A",
@@ -912,6 +920,7 @@ type ProblemCreatorConfig = {
912
920
  };
913
921
 
914
922
  type TeachersLocaleConfig = CommonLocaleConfig & {
923
+ calculators: CalculatorType[];
915
924
  emails: {
916
925
  studentsList: string;
917
926
  };
@@ -1120,4 +1129,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
1120
1129
  };
1121
1130
  }
1122
1131
 
1123
- export { AT_CALENDAR_CONFIG, ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebEuLocalePreset, type AuthWebVars, type AuthWebVarsPreset, CH_CALENDAR_CONFIG, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DK_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, type HighSchoolGrades, HomeRegion, IS_CALENDAR_CONFIG, 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 MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, PT_CALENDAR_CONFIG, 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_AT, type SSO_CH, type SSO_DE, type SSO_DK, type SSO_ES, type SSO_FI, type SSO_FR, type SSO_IE, type SSO_IS, type SSO_IT, type SSO_NL, type SSO_NL_BE, type SSO_NO, type SSO_PL, type SSO_PT, type SSO_SE, type SSO_SV_FI, type SSO_UK, type SSO_US, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
1132
+ export { AT_CALENDAR_CONFIG, ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebEuLocalePreset, type AuthWebVars, type AuthWebVarsPreset, CH_CALENDAR_CONFIG, CalculatorType, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DK_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, type HighSchoolGrades, HomeRegion, IS_CALENDAR_CONFIG, 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 MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, PT_CALENDAR_CONFIG, 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_AT, type SSO_CH, type SSO_DE, type SSO_DK, type SSO_ES, type SSO_FI, type SSO_FR, type SSO_IE, type SSO_IS, type SSO_IT, type SSO_NL, type SSO_NL_BE, type SSO_NO, type SSO_PL, type SSO_PT, type SSO_SE, type SSO_SV_FI, type SSO_UK, type SSO_US, SV_FI_CALENDAR_CONFIG, 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
@@ -3,6 +3,14 @@ export { c as Source } from './common.constants-DG-ku2FP.js';
3
3
  import { ComponentType } from 'react';
4
4
  import * as effector from 'effector';
5
5
 
6
+ declare enum CalculatorType {
7
+ Off = 0,
8
+ Regular = 1,
9
+ Scientific = 2,
10
+ Graphic = 3,
11
+ Cas = 4
12
+ }
13
+
6
14
  declare enum DateFormat {
7
15
  FULL = "YYYY-MM-DD HH:mm",
8
16
  FULL_US = "YYYY-MM-DD hh:mm A",
@@ -912,6 +920,7 @@ type ProblemCreatorConfig = {
912
920
  };
913
921
 
914
922
  type TeachersLocaleConfig = CommonLocaleConfig & {
923
+ calculators: CalculatorType[];
915
924
  emails: {
916
925
  studentsList: string;
917
926
  };
@@ -1120,4 +1129,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
1120
1129
  };
1121
1130
  }
1122
1131
 
1123
- export { AT_CALENDAR_CONFIG, ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebEuLocalePreset, type AuthWebVars, type AuthWebVarsPreset, CH_CALENDAR_CONFIG, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DK_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, type HighSchoolGrades, HomeRegion, IS_CALENDAR_CONFIG, 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 MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, PT_CALENDAR_CONFIG, 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_AT, type SSO_CH, type SSO_DE, type SSO_DK, type SSO_ES, type SSO_FI, type SSO_FR, type SSO_IE, type SSO_IS, type SSO_IT, type SSO_NL, type SSO_NL_BE, type SSO_NO, type SSO_PL, type SSO_PT, type SSO_SE, type SSO_SV_FI, type SSO_UK, type SSO_US, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
1132
+ export { AT_CALENDAR_CONFIG, ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebEuLocalePreset, type AuthWebVars, type AuthWebVarsPreset, CH_CALENDAR_CONFIG, CalculatorType, type CalendarConfig, CalendarLocale, type CommonGrades, DE_CALENDAR_CONFIG, DK_CALENDAR_CONFIG, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictLocaleConfig, type DistrictWebVarsPreset, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, type HighSchoolGrades, HomeRegion, IS_CALENDAR_CONFIG, 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 MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, PL_CALENDAR_CONFIG, PRIORITY_LANGUAGES, PT_CALENDAR_CONFIG, 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_AT, type SSO_CH, type SSO_DE, type SSO_DK, type SSO_ES, type SSO_FI, type SSO_FR, type SSO_IE, type SSO_IS, type SSO_IT, type SSO_NL, type SSO_NL_BE, type SSO_NO, type SSO_PL, type SSO_PT, type SSO_SE, type SSO_SV_FI, type SSO_UK, type SSO_US, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment };
package/dist/index.js CHANGED
@@ -8,6 +8,16 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
9
9
  var Svg__default = /*#__PURE__*/_interopDefault(Svg);
10
10
 
11
+ // src/shared/constants/calculator.constants.ts
12
+ var CalculatorType = /* @__PURE__ */ ((CalculatorType2) => {
13
+ CalculatorType2[CalculatorType2["Off"] = 0] = "Off";
14
+ CalculatorType2[CalculatorType2["Regular"] = 1] = "Regular";
15
+ CalculatorType2[CalculatorType2["Scientific"] = 2] = "Scientific";
16
+ CalculatorType2[CalculatorType2["Graphic"] = 3] = "Graphic";
17
+ CalculatorType2[CalculatorType2["Cas"] = 4] = "Cas";
18
+ return CalculatorType2;
19
+ })(CalculatorType || {});
20
+
11
21
  // src/shared/constants/dates.constants.ts
12
22
  var DateFormat = /* @__PURE__ */ ((DateFormat2) => {
13
23
  DateFormat2["FULL"] = "YYYY-MM-DD HH:mm";
@@ -8407,6 +8417,13 @@ var LOCALE_DISTRICT_CA = {
8407
8417
  }
8408
8418
  };
8409
8419
 
8420
+ // src/configs/locale/teachers-web/teachers.constants.ts
8421
+ var BASE_CALCULATORS = [
8422
+ 1 /* Regular */,
8423
+ 2 /* Scientific */,
8424
+ 3 /* Graphic */
8425
+ ];
8426
+
8410
8427
  // src/configs/locale/teachers-web/us/locale.us.ts
8411
8428
  var LOCALE_TEACHERS_US = {
8412
8429
  ...LOCALE_COMMON_US,
@@ -8441,6 +8458,7 @@ var LOCALE_TEACHERS_US = {
8441
8458
  gradesModal: {
8442
8459
  withOtherOption: false
8443
8460
  },
8461
+ calculators: BASE_CALCULATORS,
8444
8462
  problemCreator: PROBLEM_CREATOR_US
8445
8463
  };
8446
8464
 
@@ -8479,6 +8497,7 @@ var LOCALE_TEACHERS_SE = {
8479
8497
  gradesModal: {
8480
8498
  withOtherOption: false
8481
8499
  },
8500
+ calculators: [...BASE_CALCULATORS, 4 /* Cas */],
8482
8501
  problemCreator: PROBLEM_CREATOR_SE
8483
8502
  };
8484
8503
 
@@ -8516,6 +8535,7 @@ var LOCALE_TEACHERS_GB = {
8516
8535
  gradesModal: {
8517
8536
  withOtherOption: true
8518
8537
  },
8538
+ calculators: BASE_CALCULATORS,
8519
8539
  problemCreator: PROBLEM_CREATOR_GB
8520
8540
  };
8521
8541
 
@@ -8579,6 +8599,7 @@ var LOCALE_TEACHERS_DE = {
8579
8599
  gradesModal: {
8580
8600
  withOtherOption: false
8581
8601
  },
8602
+ calculators: [...BASE_CALCULATORS, 4 /* Cas */],
8582
8603
  problemCreator: PROBLEM_CREATOR_DE
8583
8604
  };
8584
8605
  var GoogleIcon = ({ size = 38 }) => {
@@ -9507,6 +9528,7 @@ var LOCALE_TEACHERS_PL = {
9507
9528
  gradesModal: {
9508
9529
  withOtherOption: false
9509
9530
  },
9531
+ calculators: BASE_CALCULATORS,
9510
9532
  problemCreator: PROBLEM_CREATOR_PL
9511
9533
  };
9512
9534
 
@@ -9670,6 +9692,7 @@ var LOCALE_TEACHERS_IT = {
9670
9692
  gradesModal: {
9671
9693
  withOtherOption: false
9672
9694
  },
9695
+ calculators: BASE_CALCULATORS,
9673
9696
  problemCreator: PROBLEM_CREATOR_IT
9674
9697
  };
9675
9698
 
@@ -9835,6 +9858,7 @@ var LOCALE_TEACHERS_FR = {
9835
9858
  gradesModal: {
9836
9859
  withOtherOption: false
9837
9860
  },
9861
+ calculators: BASE_CALCULATORS,
9838
9862
  problemCreator: PROBLEM_CREATOR_FR
9839
9863
  };
9840
9864
 
@@ -10000,6 +10024,7 @@ var LOCALE_TEACHERS_DK = {
10000
10024
  gradesModal: {
10001
10025
  withOtherOption: false
10002
10026
  },
10027
+ calculators: BASE_CALCULATORS,
10003
10028
  problemCreator: PROBLEM_CREATOR_DK
10004
10029
  };
10005
10030
 
@@ -10167,6 +10192,7 @@ var LOCALE_TEACHERS_NO = {
10167
10192
  gradesModal: {
10168
10193
  withOtherOption: false
10169
10194
  },
10195
+ calculators: BASE_CALCULATORS,
10170
10196
  problemCreator: PROBLEM_CREATOR_NO
10171
10197
  };
10172
10198
 
@@ -10336,6 +10362,7 @@ var LOCALE_TEACHERS_NL = {
10336
10362
  gradesModal: {
10337
10363
  withOtherOption: false
10338
10364
  },
10365
+ calculators: BASE_CALCULATORS,
10339
10366
  problemCreator: PROBLEM_CREATOR_NL
10340
10367
  };
10341
10368
 
@@ -10503,6 +10530,7 @@ var LOCALE_TEACHERS_FI = {
10503
10530
  gradesModal: {
10504
10531
  withOtherOption: false
10505
10532
  },
10533
+ calculators: BASE_CALCULATORS,
10506
10534
  problemCreator: PROBLEM_CREATOR_FI
10507
10535
  };
10508
10536
 
@@ -10670,6 +10698,7 @@ var LOCALE_TEACHERS_NL_BE = {
10670
10698
  gradesModal: {
10671
10699
  withOtherOption: false
10672
10700
  },
10701
+ calculators: BASE_CALCULATORS,
10673
10702
  problemCreator: PROBLEM_CREATOR_NL_BE
10674
10703
  };
10675
10704
 
@@ -10835,6 +10864,7 @@ var LOCALE_TEACHERS_IE = {
10835
10864
  gradesModal: {
10836
10865
  withOtherOption: true
10837
10866
  },
10867
+ calculators: BASE_CALCULATORS,
10838
10868
  problemCreator: PROBLEM_CREATOR_IE
10839
10869
  };
10840
10870
 
@@ -11000,6 +11030,7 @@ var LOCALE_TEACHERS_IS = {
11000
11030
  gradesModal: {
11001
11031
  withOtherOption: false
11002
11032
  },
11033
+ calculators: BASE_CALCULATORS,
11003
11034
  problemCreator: PROBLEM_CREATOR_IS
11004
11035
  };
11005
11036
 
@@ -11169,6 +11200,7 @@ var LOCALE_TEACHERS_SV_FI = {
11169
11200
  gradesModal: {
11170
11201
  withOtherOption: false
11171
11202
  },
11203
+ calculators: BASE_CALCULATORS,
11172
11204
  problemCreator: PROBLEM_CREATOR_SV_FI
11173
11205
  };
11174
11206
 
@@ -11328,6 +11360,7 @@ var LOCALE_TEACHERS_AT = {
11328
11360
  gradesModal: {
11329
11361
  withOtherOption: false
11330
11362
  },
11363
+ calculators: BASE_CALCULATORS,
11331
11364
  problemCreator: PROBLEM_CREATOR_AT
11332
11365
  };
11333
11366
 
@@ -11507,6 +11540,7 @@ var LOCALE_TEACHERS_CH = {
11507
11540
  gradesModal: {
11508
11541
  withOtherOption: false
11509
11542
  },
11543
+ calculators: BASE_CALCULATORS,
11510
11544
  problemCreator: PROBLEM_CREATOR_CH
11511
11545
  };
11512
11546
 
@@ -11667,6 +11701,7 @@ var LOCALE_TEACHERS_ES = {
11667
11701
  gradesModal: {
11668
11702
  withOtherOption: false
11669
11703
  },
11704
+ calculators: BASE_CALCULATORS,
11670
11705
  problemCreator: PROBLEM_CREATOR_ES
11671
11706
  };
11672
11707
 
@@ -11846,6 +11881,7 @@ var LOCALE_TEACHERS_PT = {
11846
11881
  gradesModal: {
11847
11882
  withOtherOption: false
11848
11883
  },
11884
+ calculators: BASE_CALCULATORS,
11849
11885
  problemCreator: PROBLEM_CREATOR_PT
11850
11886
  };
11851
11887
 
@@ -12199,6 +12235,7 @@ exports.AT_CALENDAR_CONFIG = AT_CALENDAR_CONFIG;
12199
12235
  exports.ApiRegion = ApiRegion;
12200
12236
  exports.AppConfigManager = AppConfigManager;
12201
12237
  exports.CH_CALENDAR_CONFIG = CH_CALENDAR_CONFIG;
12238
+ exports.CalculatorType = CalculatorType;
12202
12239
  exports.CalendarLocale = CalendarLocale;
12203
12240
  exports.DE_CALENDAR_CONFIG = DE_CALENDAR_CONFIG;
12204
12241
  exports.DK_CALENDAR_CONFIG = DK_CALENDAR_CONFIG;