@magmamath/frontend-config 1.5.7 → 1.5.8

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-C63VsNO4.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, 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, 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-C63VsNO4.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, 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, 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";
@@ -8109,6 +8119,13 @@ var LOCALE_DISTRICT_CA = {
8109
8119
  }
8110
8120
  };
8111
8121
 
8122
+ // src/configs/locale/teachers-web/teachers.constants.ts
8123
+ var BASE_CALCULATORS = [
8124
+ 1 /* Regular */,
8125
+ 2 /* Scientific */,
8126
+ 3 /* Graphic */
8127
+ ];
8128
+
8112
8129
  // src/configs/locale/teachers-web/us/locale.us.ts
8113
8130
  var LOCALE_TEACHERS_US = {
8114
8131
  ...LOCALE_COMMON_US,
@@ -8143,6 +8160,7 @@ var LOCALE_TEACHERS_US = {
8143
8160
  gradesModal: {
8144
8161
  withOtherOption: false
8145
8162
  },
8163
+ calculators: BASE_CALCULATORS,
8146
8164
  problemCreator: PROBLEM_CREATOR_US
8147
8165
  };
8148
8166
 
@@ -8181,6 +8199,7 @@ var LOCALE_TEACHERS_SE = {
8181
8199
  gradesModal: {
8182
8200
  withOtherOption: false
8183
8201
  },
8202
+ calculators: [...BASE_CALCULATORS, 4 /* Cas */],
8184
8203
  problemCreator: PROBLEM_CREATOR_SE
8185
8204
  };
8186
8205
 
@@ -8218,6 +8237,7 @@ var LOCALE_TEACHERS_GB = {
8218
8237
  gradesModal: {
8219
8238
  withOtherOption: true
8220
8239
  },
8240
+ calculators: BASE_CALCULATORS,
8221
8241
  problemCreator: PROBLEM_CREATOR_GB
8222
8242
  };
8223
8243
 
@@ -8281,6 +8301,7 @@ var LOCALE_TEACHERS_DE = {
8281
8301
  gradesModal: {
8282
8302
  withOtherOption: false
8283
8303
  },
8304
+ calculators: [...BASE_CALCULATORS, 4 /* Cas */],
8284
8305
  problemCreator: PROBLEM_CREATOR_DE
8285
8306
  };
8286
8307
  var GoogleIcon = ({ size = 38 }) => {
@@ -9209,6 +9230,7 @@ var LOCALE_TEACHERS_PL = {
9209
9230
  gradesModal: {
9210
9231
  withOtherOption: false
9211
9232
  },
9233
+ calculators: BASE_CALCULATORS,
9212
9234
  problemCreator: PROBLEM_CREATOR_PL
9213
9235
  };
9214
9236
 
@@ -9372,6 +9394,7 @@ var LOCALE_TEACHERS_IT = {
9372
9394
  gradesModal: {
9373
9395
  withOtherOption: false
9374
9396
  },
9397
+ calculators: BASE_CALCULATORS,
9375
9398
  problemCreator: PROBLEM_CREATOR_IT
9376
9399
  };
9377
9400
 
@@ -9537,6 +9560,7 @@ var LOCALE_TEACHERS_FR = {
9537
9560
  gradesModal: {
9538
9561
  withOtherOption: false
9539
9562
  },
9563
+ calculators: BASE_CALCULATORS,
9540
9564
  problemCreator: PROBLEM_CREATOR_FR
9541
9565
  };
9542
9566
 
@@ -9702,6 +9726,7 @@ var LOCALE_TEACHERS_DK = {
9702
9726
  gradesModal: {
9703
9727
  withOtherOption: false
9704
9728
  },
9729
+ calculators: BASE_CALCULATORS,
9705
9730
  problemCreator: PROBLEM_CREATOR_DK
9706
9731
  };
9707
9732
 
@@ -9869,6 +9894,7 @@ var LOCALE_TEACHERS_NO = {
9869
9894
  gradesModal: {
9870
9895
  withOtherOption: false
9871
9896
  },
9897
+ calculators: BASE_CALCULATORS,
9872
9898
  problemCreator: PROBLEM_CREATOR_NO
9873
9899
  };
9874
9900
 
@@ -10038,6 +10064,7 @@ var LOCALE_TEACHERS_NL = {
10038
10064
  gradesModal: {
10039
10065
  withOtherOption: false
10040
10066
  },
10067
+ calculators: BASE_CALCULATORS,
10041
10068
  problemCreator: PROBLEM_CREATOR_NL
10042
10069
  };
10043
10070
 
@@ -10205,6 +10232,7 @@ var LOCALE_TEACHERS_FI = {
10205
10232
  gradesModal: {
10206
10233
  withOtherOption: false
10207
10234
  },
10235
+ calculators: BASE_CALCULATORS,
10208
10236
  problemCreator: PROBLEM_CREATOR_FI
10209
10237
  };
10210
10238
 
@@ -10372,6 +10400,7 @@ var LOCALE_TEACHERS_NL_BE = {
10372
10400
  gradesModal: {
10373
10401
  withOtherOption: false
10374
10402
  },
10403
+ calculators: BASE_CALCULATORS,
10375
10404
  problemCreator: PROBLEM_CREATOR_NL_BE
10376
10405
  };
10377
10406
 
@@ -10537,6 +10566,7 @@ var LOCALE_TEACHERS_IE = {
10537
10566
  gradesModal: {
10538
10567
  withOtherOption: true
10539
10568
  },
10569
+ calculators: BASE_CALCULATORS,
10540
10570
  problemCreator: PROBLEM_CREATOR_IE
10541
10571
  };
10542
10572
 
@@ -10702,6 +10732,7 @@ var LOCALE_TEACHERS_IS = {
10702
10732
  gradesModal: {
10703
10733
  withOtherOption: false
10704
10734
  },
10735
+ calculators: BASE_CALCULATORS,
10705
10736
  problemCreator: PROBLEM_CREATOR_IS
10706
10737
  };
10707
10738
 
@@ -10871,6 +10902,7 @@ var LOCALE_TEACHERS_SV_FI = {
10871
10902
  gradesModal: {
10872
10903
  withOtherOption: false
10873
10904
  },
10905
+ calculators: BASE_CALCULATORS,
10874
10906
  problemCreator: PROBLEM_CREATOR_SV_FI
10875
10907
  };
10876
10908
 
@@ -11030,6 +11062,7 @@ var LOCALE_TEACHERS_AT = {
11030
11062
  gradesModal: {
11031
11063
  withOtherOption: false
11032
11064
  },
11065
+ calculators: BASE_CALCULATORS,
11033
11066
  problemCreator: PROBLEM_CREATOR_AT
11034
11067
  };
11035
11068
 
@@ -11209,6 +11242,7 @@ var LOCALE_TEACHERS_CH = {
11209
11242
  gradesModal: {
11210
11243
  withOtherOption: false
11211
11244
  },
11245
+ calculators: BASE_CALCULATORS,
11212
11246
  problemCreator: PROBLEM_CREATOR_CH
11213
11247
  };
11214
11248
 
@@ -11369,6 +11403,7 @@ var LOCALE_TEACHERS_ES = {
11369
11403
  gradesModal: {
11370
11404
  withOtherOption: false
11371
11405
  },
11406
+ calculators: BASE_CALCULATORS,
11372
11407
  problemCreator: PROBLEM_CREATOR_ES
11373
11408
  };
11374
11409
 
@@ -11548,6 +11583,7 @@ var LOCALE_TEACHERS_PT = {
11548
11583
  gradesModal: {
11549
11584
  withOtherOption: false
11550
11585
  },
11586
+ calculators: BASE_CALCULATORS,
11551
11587
  problemCreator: PROBLEM_CREATOR_PT
11552
11588
  };
11553
11589
 
@@ -11900,6 +11936,7 @@ var AppConfigManager = class {
11900
11936
  exports.AT_CALENDAR_CONFIG = AT_CALENDAR_CONFIG;
11901
11937
  exports.AppConfigManager = AppConfigManager;
11902
11938
  exports.CH_CALENDAR_CONFIG = CH_CALENDAR_CONFIG;
11939
+ exports.CalculatorType = CalculatorType;
11903
11940
  exports.CalendarLocale = CalendarLocale;
11904
11941
  exports.DE_CALENDAR_CONFIG = DE_CALENDAR_CONFIG;
11905
11942
  exports.DK_CALENDAR_CONFIG = DK_CALENDAR_CONFIG;