@magmamath/frontend-config 1.1.1 → 1.1.2-rc.1

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
@@ -12,7 +12,9 @@ declare enum DateFormat {
12
12
  DAY_MONTH_US = "MMM DD",
13
13
  YEAR_MONTH_DAY = "YYYY-MM-DD",
14
14
  FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
15
- FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
15
+ FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A",
16
+ MONTH_DAY_TIME = "MMM D HH:mm",
17
+ MONTH_DAY_TIME_US = "MMM D hh:mm A"
16
18
  }
17
19
  declare const DateLocale: {
18
20
  readonly US: "en";
@@ -29,6 +31,11 @@ declare const DateLocale: {
29
31
  readonly 'de-DE': "de";
30
32
  };
31
33
  type DateLocale = (typeof DateLocale)[keyof typeof DateLocale];
34
+ declare const MomentDateLocale: {
35
+ GB: string;
36
+ SE: string;
37
+ DE: string;
38
+ };
32
39
 
33
40
  declare enum Platform {
34
41
  STUDENTS_WEB = "STUDENTS",
@@ -115,8 +122,248 @@ declare enum MatrixMode {
115
122
  STANDARD = "STANDARD"
116
123
  }
117
124
 
125
+ declare enum Grade {
126
+ OTHER = -1,
127
+ ZERO = 0,
128
+ ONE = 1,
129
+ TWO = 2,
130
+ THREE = 3,
131
+ FOUR = 4,
132
+ FIVE = 5,
133
+ SIX = 6,
134
+ SEVEN = 7,
135
+ EIGHT = 8,
136
+ NINE = 9,
137
+ TEN = 10,
138
+ ELEVEN = 11,
139
+ TWELVE = 12,
140
+ THIRTEEN = 13,
141
+ ALGEBRA_1 = 21,
142
+ GEOMETRY = 22,
143
+ ALGEBRA_2 = 23,
144
+ INTEGRATED_MATH_I = 24,
145
+ INTEGRATED_MATH_II = 25,
146
+ INTEGRATED_MATH_III = 26,
147
+ PRECALCULUS = 27,
148
+ HS = "HS",
149
+ HSG = "HSG",
150
+ HSA = "HSA",
151
+ HSS = "HSS",
152
+ HSF = "HSF",
153
+ HSN = "HSN",
154
+ K = "K"
155
+ }
156
+
157
+ declare enum NumberDecimalSeparator {
158
+ DOT = ".",
159
+ COMMA = ","
160
+ }
161
+ declare enum NumberGroupingSeparator {
162
+ SPACE = "space",
163
+ COMMA = "comma",
164
+ DOT = "dot",
165
+ APOSTROPHE = "apostrophe"
166
+ }
167
+
168
+ declare enum TTSOverrideSymbol {
169
+ POWER = "power"
170
+ }
171
+ declare enum Language {
172
+ AFRIKAANS = "Afrikaans",
173
+ ALBANIAN = "Albanian",
174
+ AMHARIC = "Amharic",
175
+ ARABIC = "Arabic",
176
+ ARMENIAN = "Armenian",
177
+ ASSAMESE = "Assamese",
178
+ AYMARA = "Aymara",
179
+ AZERBAIJANI = "Azerbaijani",
180
+ BAMBARA = "Bambara",
181
+ BASQUE = "Basque",
182
+ BELARUSIAN = "Belarusian",
183
+ BENGALI = "Bengali",
184
+ BHOJPURI = "Bhojpuri",
185
+ BOSNIAN = "Bosnian",
186
+ BULGARIAN = "Bulgarian",
187
+ CATALAN = "Catalan",
188
+ CEBUANO = "Cebuano",
189
+ CHINESE_SIMPLIFIED = "Chinese (Simplified)",
190
+ CHINESE_TRADITIONAL = "Chinese (Traditional)",
191
+ CORSICAN = "Corsican",
192
+ CROATIAN = "Croatian",
193
+ CZECH = "Czech",
194
+ DANISH = "Danish",
195
+ DHIVEHI = "Dhivehi",
196
+ DOGRI = "Dogri",
197
+ DUTCH = "Dutch",
198
+ ENGLISH = "English",
199
+ BRITISH_ENGLISH = "British English",
200
+ ESPERANTO = "Esperanto",
201
+ ESTONIAN = "Estonian",
202
+ EWE = "Ewe",
203
+ FINNISH = "Finnish",
204
+ FRENCH = "French",
205
+ FRISIAN = "Frisian",
206
+ GALICIAN = "Galician",
207
+ GEORGIAN = "Georgian",
208
+ GERMAN = "German",
209
+ GREEK = "Greek",
210
+ GUARANI = "Guarani",
211
+ GUJARATI = "Gujarati",
212
+ HAITIAN_CREOLE = "Haitian Creole",
213
+ HAUSA = "Hausa",
214
+ HAWAIIAN = "Hawaiian",
215
+ HEBREW = "Hebrew",
216
+ HINDI = "Hindi",
217
+ HMONG = "Hmong",
218
+ HUNGARIAN = "Hungarian",
219
+ ICELANDIC = "Icelandic",
220
+ IGBO = "Igbo",
221
+ ILOCANO = "Ilocano",
222
+ INDONESIAN = "Indonesian",
223
+ IRISH = "Irish",
224
+ ITALIAN = "Italian",
225
+ JAPANESE = "Japanese",
226
+ JAVANESE = "Javanese",
227
+ KANNADA = "Kannada",
228
+ KAZAKH = "Kazakh",
229
+ KHMER = "Khmer",
230
+ KINYARWANDA = "Kinyarwanda",
231
+ KONKANI = "Konkani",
232
+ KOREAN = "Korean",
233
+ KRIO = "Krio",
234
+ KURDISH = "Kurdish",
235
+ KURDISH_SORANI = "Kurdish (Sorani)",
236
+ KYRGYZ = "Kyrgyz",
237
+ LAO = "Lao",
238
+ LATVIAN = "Latvian",
239
+ LINGALA = "Lingala",
240
+ LITHUANIAN = "Lithuanian",
241
+ LUGANDA = "Luganda",
242
+ LUXEMBOURGISH = "Luxembourgish",
243
+ MACEDONIAN = "Macedonian",
244
+ MAITHILI = "Maithili",
245
+ MALAGASY = "Malagasy",
246
+ MALAY = "Malay",
247
+ MALAYALAM = "Malayalam",
248
+ MALTESE = "Maltese",
249
+ MAORI = "Maori",
250
+ MARATHI = "Marathi",
251
+ MEITEILON_MANIPURI = "Meiteilon (Manipuri)",
252
+ MIZO = "Mizo",
253
+ MONGOLIAN = "Mongolian",
254
+ MYANMAR_BURMESE = "Myanmar (Burmese)",
255
+ NEPALI = "Nepali",
256
+ NORWEGIAN = "Norwegian",
257
+ NYANJA_CHICHEWA = "Nyanja (Chichewa)",
258
+ ODIA_ORIYA = "Odia (Oriya)",
259
+ OROMO = "Oromo",
260
+ PASHTO = "Pashto",
261
+ PERSIAN = "Persian (Farsi)",
262
+ POLISH = "Polish",
263
+ PORTUGUESE_PORTUGAL_BRAZIL = "Portuguese (Portugal, Brazil)",
264
+ PUNJABI = "Punjabi",
265
+ QUECHUA = "Quechua",
266
+ ROMANIAN = "Romanian",
267
+ RUSSIAN = "Russian",
268
+ SAMOAN = "Samoan",
269
+ SANSKRIT = "Sanskrit",
270
+ SCOTS_GAELIC = "Scots Gaelic",
271
+ SEPEDI = "Sepedi",
272
+ SERBIAN = "Serbian",
273
+ SESOTHO = "Sesotho",
274
+ SHONA = "Shona",
275
+ SINDHI = "Sindhi",
276
+ SINHALA_SINHALESE = "Sinhala (Sinhalese)",
277
+ SLOVAK = "Slovak",
278
+ SLOVENIAN = "Slovenian",
279
+ SOMALI = "Somali",
280
+ SPANISH = "Spanish",
281
+ SUNDANESE = "Sundanese",
282
+ SWAHILI = "Swahili",
283
+ SWEDISH = "Swedish",
284
+ TAGALOG_FILIPINO = "Tagalog (Filipino)",
285
+ TAJIK = "Tajik",
286
+ TAMIL = "Tamil",
287
+ TATAR = "Tatar",
288
+ TELUGU = "Telugu",
289
+ THAI = "Thai",
290
+ TIGRINYA = "Tigrinya",
291
+ TSONGA = "Tsonga",
292
+ TURKISH = "Turkish",
293
+ TURKMEN = "Turkmen",
294
+ TWI_AKAN = "Twi (Akan)",
295
+ UKRAINIAN = "Ukrainian",
296
+ URDU = "Urdu",
297
+ UYGHUR = "Uyghur",
298
+ UZBEK = "Uzbek",
299
+ VIETNAMESE = "Vietnamese",
300
+ WELSH = "Welsh",
301
+ XHOSA = "Xhosa",
302
+ YIDDISH = "Yiddish",
303
+ YORUBA = "Yoruba",
304
+ ZULU = "Zulu"
305
+ }
306
+ declare const LANGUAGES_CONFIG: Record<Language, LanguageConfig>;
307
+ declare const PRIORITY_LANGUAGES: readonly [Language.SPANISH, Language.ARMENIAN, Language.FRENCH, Language.ARABIC, Language.RUSSIAN];
308
+ declare const MOST_USED_LANGUAGES: Language[];
309
+ declare const LANGUAGES_LIST: string[];
310
+
311
+ type LanguageConfig = {
312
+ code: string;
313
+ baseName?: Language;
314
+ isMostUsed?: boolean;
315
+ voice?: {
316
+ code: string;
317
+ name: string;
318
+ preprocessing?: {
319
+ commaAsSpace?: boolean;
320
+ overrides?: Record<TTSOverrideSymbol, string>;
321
+ };
322
+ };
323
+ };
324
+
325
+ declare enum TreeLevel {
326
+ DOMAIN = 0,
327
+ STANDARD = 1,
328
+ SKILL = 2
329
+ }
330
+
331
+ declare enum WeekStart {
332
+ SUNDAY = 0,
333
+ MONDAY = 1
334
+ }
335
+ declare enum CalendarLocale {
336
+ EN = "en",
337
+ SE = "sv",
338
+ DE = "de"
339
+ }
340
+ type CalendarConfig = {
341
+ locale: CalendarLocale;
342
+ weekFirstDay: WeekStart;
343
+ monthNames: string[];
344
+ dayNames: string[];
345
+ dayNamesShort: string[];
346
+ monthNamesShort: string[];
347
+ today: string;
348
+ };
349
+ declare const EN_CALENDAR_CONFIG: CalendarConfig;
350
+ declare const SE_CALENDAR_CONFIG: CalendarConfig;
351
+ declare const DE_CALENDAR_CONFIG: CalendarConfig;
352
+
353
+ type GradeData = {
354
+ name: string;
355
+ displayOnly?: boolean;
356
+ noPrefix?: boolean;
357
+ excludeFromPieChart?: boolean;
358
+ };
359
+ type CommonGrades = Grade.OTHER | Grade.ZERO | Grade.K;
360
+ type PrimaryGrades = CommonGrades | Grade.ONE | Grade.TWO | Grade.THREE | Grade.FOUR | Grade.FIVE | Grade.SIX | Grade.SEVEN | Grade.EIGHT | Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.THIRTEEN;
361
+ type HighSchoolGrades = Grade.NINE | Grade.TEN | Grade.ELEVEN | Grade.TWELVE | Grade.ALGEBRA_1 | Grade.GEOMETRY | Grade.ALGEBRA_2 | Grade.INTEGRATED_MATH_I | Grade.INTEGRATED_MATH_II | Grade.INTEGRATED_MATH_III | Grade.PRECALCULUS | Grade.HS | Grade.HSG | Grade.HSA | Grade.HSS | Grade.HSF | Grade.HSN;
362
+
118
363
  type IconProps = {
119
364
  size?: number;
365
+ color?: string;
366
+ extraColor?: string;
120
367
  };
121
368
 
122
369
  type SSOConfig<E> = Readonly<{
@@ -224,7 +471,7 @@ type Prettify<T> = T extends Function ? T : {
224
471
  };
225
472
 
226
473
  type AuthWebVars<T extends SSOVariant> = Prettify<AuthWebBaseVars & T>;
227
- type AuthWebBaseVars = Omit<RegionSpecificVars, 'CDN_HOST' | 'LOGGLY_TAG' | 'SOCKET_URL'> & {
474
+ type AuthWebBaseVars = Omit<RegionSpecificVars, 'LOGGLY_TAG' | 'SOCKET_URL'> & {
228
475
  TOS_URL: string;
229
476
  CLARITY_PROJECT_ID: string;
230
477
  INTERCOM_APP_ID: string;
@@ -263,6 +510,8 @@ type MobileCommon = {
263
510
  GOOGLE_API_KEY: string;
264
511
  GOOGLE_TEXT_TO_SPEECH_URL: string;
265
512
  GOOGLE_TRANSLATE_URL: string;
513
+ SIGN_UP_BOOKING_ONBOARDING: string;
514
+ TOS_URL: string;
266
515
  };
267
516
  type MobileBaseVars = {
268
517
  TEACHERS_WEB_URL: string;
@@ -271,6 +520,7 @@ type MobileBaseVars = {
271
520
  CDN_HOST: string;
272
521
  SOCKET_URL: string;
273
522
  LOGGLY_TAG: string;
523
+ PROBLEM_CREATOR_URL: string;
274
524
  } & MobileCommon;
275
525
  type MobileVars<T extends SSOVariant> = Prettify<MobileBaseVars & T>;
276
526
  type MobileVarsPreset = {
@@ -324,118 +574,114 @@ type EnvironmentVars<P extends Platform> = EnvPreset[P][Locale][Environment];
324
574
 
325
575
  declare function buildTargetToEnvironment(buildTarget: PlatformBuildTarget): Environment;
326
576
 
577
+ declare enum KeyboardPreset {
578
+ DOT_MIXED = "DotMixed",
579
+ DOT_MIXED_ALT = "DotMixedAlt",
580
+ COMMA_METRIC = "CommaMetric"
581
+ }
582
+ declare enum KeyboardCurrencyVariant {
583
+ DOLLAR_CENT = "DollarCent",
584
+ POUND_PENCE = "PoundPence",
585
+ KRONE_EURO_POUND = "KroneEuroPound",
586
+ EURO_DOLLAR_POUND = "EuroDollarPound"
587
+ }
588
+ declare enum KeyboardTimeVariant {
589
+ H12 = "H12",
590
+ H24 = "H24"
591
+ }
592
+
593
+ type KeyboardConfig = {
594
+ preset: KeyboardPreset;
595
+ currencyVariant: KeyboardCurrencyVariant;
596
+ timeVariant: KeyboardTimeVariant;
597
+ };
598
+ type LocaleLanguageData = LanguageConfig & {
599
+ name: Language;
600
+ };
327
601
  type StudentsLocaleConfig = CommonLocaleConfig & {
328
- textFormatting: {
329
- replaceCommaWithSpace: boolean;
330
- };
331
- symbols: {
332
- numberDecimalSeparator: string;
333
- };
602
+ language: LocaleLanguageData;
334
603
  practiceMode: {
335
- languageCode: Locale;
604
+ locale: Locale;
336
605
  defaultPracticeTreeId: string;
606
+ alwaysShowNavigationTab?: boolean;
337
607
  };
338
- chatbot: {
339
- languageName: string;
340
- tts: {
341
- languageCodeFallback: string;
342
- voiceNameFallback: string;
343
- };
344
- };
345
- tts: {
346
- replaceCommaWithSpace: boolean;
347
- };
348
- translate: {
349
- languageCodeFallback: string;
350
- };
351
- problem: {
352
- choiceInputSelector: {
353
- useSmallText: boolean;
354
- };
355
- choiceAnswerFeedback: {
356
- useSlimLayout: boolean;
357
- };
358
- answer: {
359
- shortButton: boolean;
360
- };
608
+ keyboard: KeyboardConfig;
609
+ drawboard: {
610
+ basicManipulativesMaxGrade: number;
361
611
  };
362
612
  exampleSolutions: {
363
613
  languageName: string;
364
614
  };
365
- statsTab: {
366
- buttonWithMinWidth: boolean;
615
+ myScript: {
616
+ enableSolver: boolean;
367
617
  };
368
- smartEval: {
369
- language: string;
618
+ equationWriter: {
619
+ replaceBackslashWithQuote: boolean;
370
620
  };
371
621
  };
372
622
 
623
+ declare enum ProblemCreatorKeyboardPreset {
624
+ DOT_MIXED = "DotMixed",
625
+ COMMA_METRIC = "CommaMetric"
626
+ }
627
+ declare enum ProblemCreatorMathEntryVariant {
628
+ DOLLAR = "Dollar",
629
+ KRONE = "Krone",
630
+ POUND_PENCE = "PoundPence",
631
+ EURO = "Euro"
632
+ }
633
+ declare enum ProblemCreatorDescriptionVariant {
634
+ EXTENDED_MULT_BASIC_ROOTS = "ExtendedMultBasicRoots",
635
+ DOT_EXTENDED_ROOTS = "DotExtendedRoots",
636
+ DOT_BASIC_ROOTS = "DotBasicRoots"
637
+ }
638
+
639
+ type ProblemCreatorKeyboardConfig = {
640
+ preset: ProblemCreatorKeyboardPreset;
641
+ mathEntryVariant: ProblemCreatorMathEntryVariant;
642
+ descriptionVariant: ProblemCreatorDescriptionVariant;
643
+ };
644
+ type ProblemCreatorConfig = {
645
+ useCommaForDecimal: boolean;
646
+ useDotForMultiplication: boolean;
647
+ savedProblemLocale: Locale;
648
+ keyboard: ProblemCreatorKeyboardConfig;
649
+ };
650
+
373
651
  type TeachersLocaleConfig = CommonLocaleConfig & {
374
- country: string;
375
652
  emails: {
376
653
  studentsList: string;
377
654
  };
378
- symbols: {
379
- decimalSeparator: string;
380
- };
381
- date: {
382
- use24HourFormat: boolean;
383
- locale: DateLocale;
384
- formats: {
385
- full: DateFormat;
386
- dayMonth: DateFormat;
387
- hoursMinutes: DateFormat;
388
- fullWithSeconds: DateFormat;
389
- };
390
- };
391
655
  urls: {
392
656
  specialBook: string;
393
657
  helpCenter: string;
394
658
  about: string;
395
- };
396
- bookshelf: {
397
- limitSharedExercisesTooltipWidth: boolean;
659
+ onboarding: string;
398
660
  };
399
661
  problemsList: {
400
662
  showProblemComplexity: boolean;
401
663
  };
402
664
  practiceMode: {
403
- defaultTreeIdFallback: string;
665
+ defaultPracticeTreeId: string;
666
+ alwaysEnabled: boolean;
404
667
  };
405
668
  matrix: {
406
669
  forceShowRecommendations: boolean;
670
+ filterStandardsByGradeLevel: boolean;
407
671
  forceMatrixMode?: MatrixMode;
408
672
  };
409
673
  pieChart: {
410
674
  showExtraTreeDataContent: boolean;
411
675
  };
412
- problem: {
413
- allowCommaDecimal: boolean;
414
- };
415
- getStarted: {
416
- showSentEmailInfo: boolean;
417
- };
418
676
  firstLoginBooks: {
419
677
  isLargeGrade: ((grade: number) => boolean) | null;
678
+ mergeHighSchoolGrades: boolean;
679
+ withGradeZero: boolean;
420
680
  };
421
- grades: {
422
- showPrefix: boolean;
423
- showOtherGrade: boolean;
424
- };
425
- };
426
-
427
- type DistrictLocaleConfig = CommonLocaleConfig & {
428
- date: {
429
- use24HourFormat: boolean;
430
- locale: DateLocale;
431
- formats: {
432
- full: DateFormat;
433
- dayMonthYear: DateFormat;
434
- dayMonth: DateFormat;
435
- hoursMinutes: DateFormat;
436
- fullWithSeconds: DateFormat;
437
- };
681
+ gradesModal: {
682
+ withOtherOption: boolean;
438
683
  };
684
+ problemCreator: ProblemCreatorConfig;
439
685
  };
440
686
 
441
687
  type AuthLocaleConfig<E> = {
@@ -456,6 +702,9 @@ type AuthLocaleConfig<E> = {
456
702
  regionGroup: string;
457
703
  navigatorLanguages: string[];
458
704
  locale: Locale;
705
+ urls?: {
706
+ onboarding?: string;
707
+ };
459
708
  };
460
709
 
461
710
  type WebAdminLocaleConfig = {
@@ -467,12 +716,52 @@ type WebAdminLocaleConfig = {
467
716
  apiRegion: ApiRegion;
468
717
  };
469
718
 
719
+ type DateConfig = Readonly<{
720
+ use24HourFormat: boolean;
721
+ locale: string;
722
+ momentLocale: string;
723
+ formats: {
724
+ dayMonth: string;
725
+ dayMonthYear: string;
726
+ monthDayTime: string;
727
+ hoursMinutes: string;
728
+ full: string;
729
+ fullWithSeconds: string;
730
+ };
731
+ }>;
732
+
733
+ type GradesConfig = Readonly<{
734
+ primary: Partial<Record<PrimaryGrades, GradeData>>;
735
+ highSchool: Partial<Record<HighSchoolGrades, GradeData>>;
736
+ treeGradeOffset?: number;
737
+ }>;
738
+
739
+ type MobileLocaleConfig<E> = StudentsLocaleConfig & TeachersLocaleConfig & AuthLocaleConfig<E> & {
740
+ localizeCountryCode: string;
741
+ calendar: CalendarConfig;
742
+ };
743
+
744
+ declare enum MultiplicationSymbol {
745
+ CDOT = "CDOT",
746
+ TIMES = "TIMES"
747
+ }
748
+
470
749
  type CommonLocaleConfig = Readonly<{
471
750
  name: string;
472
751
  languageName: string;
752
+ country: string;
473
753
  languageHeader: string;
474
754
  contentLocale: Locale;
475
755
  shortCode: string;
756
+ date: DateConfig;
757
+ grades: GradesConfig;
758
+ numberFormatting: {
759
+ decimalSeparator: NumberDecimalSeparator;
760
+ groupingSeparator: NumberGroupingSeparator;
761
+ };
762
+ mathSymbols: {
763
+ multiplication: MultiplicationSymbol;
764
+ };
476
765
  }>;
477
766
  type LocalePreset = {
478
767
  [Platform.STUDENTS_WEB]: {
@@ -491,11 +780,18 @@ type LocalePreset = {
491
780
  [key in Locale]: WebAdminLocaleConfig;
492
781
  };
493
782
  [Platform.MOBILE]: {
494
- [key in Locale]: AuthLocaleConfig<MobileVars<SSOByLocale[key]>>;
783
+ [key in Locale]: MobileLocaleConfig<MobileVars<SSOByLocale[key]>>;
495
784
  };
496
785
  };
497
786
  type LocaleConfig<P extends Platform, L extends Locale> = LocalePreset[P][L];
498
787
 
788
+ type DistrictLocaleConfig = CommonLocaleConfig & {
789
+ tree: {
790
+ lowestLevel: TreeLevel;
791
+ };
792
+ problemCreator: ProblemCreatorConfig;
793
+ };
794
+
499
795
  type DevOverrides<P extends Platform> = {
500
796
  [K in Locale]?: Partial<EnvironmentVars<P>>;
501
797
  };
@@ -519,6 +815,14 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
519
815
  private readonly setLocaleConfig;
520
816
  readonly $envs: effector.StoreWritable<EnvironmentVars<P>>;
521
817
  readonly $localeConfig: effector.StoreWritable<LocaleConfig<P, L>>;
818
+ readonly $localeFlags: effector.Store<{
819
+ isUS: boolean;
820
+ isSwedish: boolean;
821
+ isBritish: boolean;
822
+ isCanadian: boolean;
823
+ isScottish: boolean;
824
+ isGerman: boolean;
825
+ }>;
522
826
  constructor(opts: ConfigOptions<P>);
523
827
  private readonly syncConfigsStores;
524
828
  readonly set: (props: SetProps<L>) => void;
@@ -526,6 +830,14 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
526
830
  getLocaleConfig: () => LocaleConfig<P, L> & {
527
831
  locale: L;
528
832
  };
833
+ getLocaleFlags: () => {
834
+ isUS: boolean;
835
+ isSwedish: boolean;
836
+ isBritish: boolean;
837
+ isCanadian: boolean;
838
+ isScottish: boolean;
839
+ isGerman: boolean;
840
+ };
529
841
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
530
842
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
531
843
  readonly getPresets: () => {
@@ -534,4 +846,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
534
846
  };
535
847
  }
536
848
 
537
- export { ApiRegion, AppConfigManager, type AuthWebBaseVars, type AuthWebVars, type AuthWebVarsPreset, DateFormat, DateLocale, type DistrictCommon, type DistrictDashboardVars, type DistrictWebVarsPreset, type EnvPreset, Environment, type EnvironmentVars, Locale, LoginSource, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileVars, type MobileVarsPreset, Platform, PlatformBuildTarget, QRCodeSize, SSO, type SSOByLocale, type SSOConfig, type SSOVariant, type SSO_DE, type SSO_SE, type SSO_UK, type SSO_US, Source, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, buildTargetToEnvironment };
849
+ 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, 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 };