@magmamath/frontend-config 1.0.22-rc.0 → 1.0.22-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
@@ -519,14 +519,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
519
519
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
520
520
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
521
521
  readonly getPresets: () => {
522
- envPreset: Readonly<{
523
- STUDENTS: StudentsWebVarsPreset;
524
- TEACHERS: TeachersWebVarsPreset;
525
- DISTRICT: DistrictWebVarsPreset;
526
- AUTH_WEB: AuthWebVarsPreset;
527
- WEB_ADMIN: WebAdminVarsPreset;
528
- MOBILE: MobileVarsPreset;
529
- }>;
522
+ envPreset: any;
530
523
  localePreset: LocalePreset;
531
524
  };
532
525
  }
package/dist/index.d.ts CHANGED
@@ -519,14 +519,7 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
519
519
  readonly onEnvsChange: (cb: (cfg: EnvironmentVars<P>) => void) => effector.Subscription;
520
520
  readonly onLocaleChange: (cb: (cfg: LocaleConfig<P, L>) => void) => effector.Subscription;
521
521
  readonly getPresets: () => {
522
- envPreset: Readonly<{
523
- STUDENTS: StudentsWebVarsPreset;
524
- TEACHERS: TeachersWebVarsPreset;
525
- DISTRICT: DistrictWebVarsPreset;
526
- AUTH_WEB: AuthWebVarsPreset;
527
- WEB_ADMIN: WebAdminVarsPreset;
528
- MOBILE: MobileVarsPreset;
529
- }>;
522
+ envPreset: any;
530
523
  localePreset: LocalePreset;
531
524
  };
532
525
  }
package/dist/index.js CHANGED
@@ -2979,7 +2979,7 @@ var AppConfigManager = class {
2979
2979
  return this.$localeConfig.watch(cb);
2980
2980
  };
2981
2981
  getPresets = () => {
2982
- const envPreset = structuredClone(ENV_PRESET);
2982
+ const envPreset = JSON.parse(JSON.stringify(ENV_PRESET));
2983
2983
  if (this._DEV_OVERRIDES_) {
2984
2984
  for (const [region, overrides] of Object.entries(this._DEV_OVERRIDES_)) {
2985
2985
  if (!overrides) continue;