@magmamath/frontend-config 0.0.1-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 +245 -0
- package/dist/index.d.ts +245 -0
- package/dist/index.js +1703 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1699 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +37 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as effector from 'effector';
|
|
2
|
+
|
|
3
|
+
declare enum DateFormat {
|
|
4
|
+
FULL = "YYYY-MM-DD HH:mm",
|
|
5
|
+
FULL_US = "YYYY-MM-DD hh:mm A",
|
|
6
|
+
DAY_MONTH_YEAR = "DD-MM-YYYY",
|
|
7
|
+
DAY_MONTH_YEAR_US = "YYYY-MM-DD",
|
|
8
|
+
HOURS_MINUTES = "HH:mm",
|
|
9
|
+
HOURS_MINUTES_US = "hh:mm A",
|
|
10
|
+
DAY_MONTH = "DD MMM",
|
|
11
|
+
DAY_MONTH_US = "MMM DD",
|
|
12
|
+
YEAR_MONTH_DAY = "YYYY-MM-DD",
|
|
13
|
+
FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
|
|
14
|
+
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
15
|
+
}
|
|
16
|
+
declare enum DateLocale {
|
|
17
|
+
US = "en",
|
|
18
|
+
SV = "sv",
|
|
19
|
+
'en-SE' = "en",
|
|
20
|
+
'sv-SE' = "sv",
|
|
21
|
+
GB = "en",
|
|
22
|
+
'en-GB' = "en",
|
|
23
|
+
CA = "en",
|
|
24
|
+
'en-CA' = "en",
|
|
25
|
+
SCT = "en",
|
|
26
|
+
'en-SCT' = "en",
|
|
27
|
+
DE = "de",
|
|
28
|
+
'de-DE' = "de"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare enum Platform {
|
|
32
|
+
STUDENTS_WEB = "STUDENTS",
|
|
33
|
+
TEACHERS_WEB = "TEACHERS",
|
|
34
|
+
DISTRICT_DASHBOARD = "DISTRICT",
|
|
35
|
+
AUTH_WEB = "AUTH_WEB",
|
|
36
|
+
STUDENTS_APP = "STUDENTS_RN_APP",
|
|
37
|
+
TEACHERS_APP = "TEACHERS_RN_APP"
|
|
38
|
+
}
|
|
39
|
+
declare enum Locale {
|
|
40
|
+
US = "en-SE",
|
|
41
|
+
SE = "sv-SE",
|
|
42
|
+
GB = "en-GB",
|
|
43
|
+
CA = "en-CA",
|
|
44
|
+
SCT = "en-SCT",
|
|
45
|
+
DE = "de-DE"
|
|
46
|
+
}
|
|
47
|
+
declare enum Environment {
|
|
48
|
+
MARS = "MARS",
|
|
49
|
+
PROD = "PROD"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type RegionEnv = Readonly<{
|
|
53
|
+
API_URL: string;
|
|
54
|
+
AUTH_WEB_URL: string;
|
|
55
|
+
MYSCRIPT_HOST: string;
|
|
56
|
+
LOGGLY_TAG: string;
|
|
57
|
+
SKOLFED_AUTH: string;
|
|
58
|
+
SOCKET_URL: string;
|
|
59
|
+
STUDENTS_WEB_URL: string;
|
|
60
|
+
TEACHERS_WEB_URL: string;
|
|
61
|
+
CDN_HOST: string;
|
|
62
|
+
}>;
|
|
63
|
+
type CommonEnv = Readonly<{
|
|
64
|
+
GOOGLE_API_KEY: string;
|
|
65
|
+
DESMOS_API_KEY: string;
|
|
66
|
+
MYSCRIPT_APPLICATION_KEY: string;
|
|
67
|
+
MYSCRIPT_HMAC_KEY: string;
|
|
68
|
+
MYSCRIPT_SOCKET_KEY: string;
|
|
69
|
+
MYSCRIPT_REST_APP_KEY: string;
|
|
70
|
+
MYSCRIPT_REST_HMAC_KEY: string;
|
|
71
|
+
LOGGLY_CUSTOMER_TOKEN: string;
|
|
72
|
+
}>;
|
|
73
|
+
type EnvironmentVariables = RegionEnv & CommonEnv;
|
|
74
|
+
|
|
75
|
+
type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
76
|
+
textFormatting: {
|
|
77
|
+
replaceCommaWithSpace: boolean;
|
|
78
|
+
};
|
|
79
|
+
symbols: {
|
|
80
|
+
numberDecimalSeparator: string;
|
|
81
|
+
};
|
|
82
|
+
practiceMode: {
|
|
83
|
+
languageCode: Locale;
|
|
84
|
+
defaultPracticeTreeId: string;
|
|
85
|
+
};
|
|
86
|
+
chatbot: {
|
|
87
|
+
languageName: string;
|
|
88
|
+
tts: {
|
|
89
|
+
languageCodeFallback: string;
|
|
90
|
+
voiceNameFallback: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
tts: {
|
|
94
|
+
replaceCommaWithSpace: boolean;
|
|
95
|
+
};
|
|
96
|
+
translate: {
|
|
97
|
+
languageCodeFallback: string;
|
|
98
|
+
};
|
|
99
|
+
problem: {
|
|
100
|
+
choiceInputSelector: {
|
|
101
|
+
useSmallText: boolean;
|
|
102
|
+
};
|
|
103
|
+
choiceAnswerFeedback: {
|
|
104
|
+
useSlimLayout: boolean;
|
|
105
|
+
};
|
|
106
|
+
answer: {
|
|
107
|
+
shortButton: boolean;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exampleSolutions: {
|
|
111
|
+
languageName: string;
|
|
112
|
+
};
|
|
113
|
+
statsTab: {
|
|
114
|
+
buttonWithMinWidth: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
119
|
+
date: {
|
|
120
|
+
use24HourFormat: boolean;
|
|
121
|
+
locale: DateLocale;
|
|
122
|
+
formats: {
|
|
123
|
+
full: DateFormat;
|
|
124
|
+
dayMonthYear: DateFormat;
|
|
125
|
+
dayMonth: DateFormat;
|
|
126
|
+
hoursMinutes: DateFormat;
|
|
127
|
+
fullWithSeconds: DateFormat;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare enum MatrixMode {
|
|
133
|
+
SKILL = "SKILL",
|
|
134
|
+
STANDARD = "STANDARD"
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
138
|
+
emails: {
|
|
139
|
+
studentsList: string;
|
|
140
|
+
};
|
|
141
|
+
symbols: {
|
|
142
|
+
decimalSeparator: string;
|
|
143
|
+
};
|
|
144
|
+
date: {
|
|
145
|
+
use24HourFormat: boolean;
|
|
146
|
+
locale: DateLocale;
|
|
147
|
+
formats: {
|
|
148
|
+
full: DateFormat;
|
|
149
|
+
dayMonth: DateFormat;
|
|
150
|
+
hoursMinutes: DateFormat;
|
|
151
|
+
fullWithSeconds: DateFormat;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
urls: {
|
|
155
|
+
specialBook: string;
|
|
156
|
+
helpCenter: string;
|
|
157
|
+
about: string;
|
|
158
|
+
};
|
|
159
|
+
bookshelf: {
|
|
160
|
+
limitSharedExercisesTooltipWidth: boolean;
|
|
161
|
+
};
|
|
162
|
+
problemsList: {
|
|
163
|
+
showProblemComplexity: boolean;
|
|
164
|
+
};
|
|
165
|
+
practiceMode: {
|
|
166
|
+
defaultTreeIdFallback: string;
|
|
167
|
+
};
|
|
168
|
+
matrix: {
|
|
169
|
+
forceShowRecommendations: boolean;
|
|
170
|
+
forceMatrixMode?: MatrixMode;
|
|
171
|
+
};
|
|
172
|
+
pieChart: {
|
|
173
|
+
showExtraTreeDataContent: boolean;
|
|
174
|
+
};
|
|
175
|
+
problem: {
|
|
176
|
+
allowCommaDecimal: boolean;
|
|
177
|
+
};
|
|
178
|
+
getStarted: {
|
|
179
|
+
showSentEmailInfo: boolean;
|
|
180
|
+
};
|
|
181
|
+
grades: {
|
|
182
|
+
showPrefix: boolean;
|
|
183
|
+
showOtherGrade: boolean;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
type CommonLocaleConfig = Readonly<{
|
|
188
|
+
name: string;
|
|
189
|
+
languageName: string;
|
|
190
|
+
languageHeader: string;
|
|
191
|
+
contentLocale: Locale;
|
|
192
|
+
shortCode: string;
|
|
193
|
+
}>;
|
|
194
|
+
type LocalePreset = {
|
|
195
|
+
[Platform.STUDENTS_WEB]: {
|
|
196
|
+
[key in Locale]: StudentsLocaleConfig;
|
|
197
|
+
};
|
|
198
|
+
[Platform.TEACHERS_WEB]: {
|
|
199
|
+
[key in Locale]: TeachersLocaleConfig;
|
|
200
|
+
};
|
|
201
|
+
[Platform.DISTRICT_DASHBOARD]: {
|
|
202
|
+
[key in Locale]: DistrictLocaleConfig;
|
|
203
|
+
};
|
|
204
|
+
[Platform.AUTH_WEB]: {
|
|
205
|
+
[key in Locale]: DistrictLocaleConfig;
|
|
206
|
+
};
|
|
207
|
+
[Platform.STUDENTS_APP]: {
|
|
208
|
+
[key in Locale]: StudentsLocaleConfig;
|
|
209
|
+
};
|
|
210
|
+
[Platform.TEACHERS_APP]: {
|
|
211
|
+
[key in Locale]: TeachersLocaleConfig;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
type Locales<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
216
|
+
type ConfigOptions<P extends Platform, L extends Locale> = {
|
|
217
|
+
platform: P;
|
|
218
|
+
locale: L;
|
|
219
|
+
environment: Environment;
|
|
220
|
+
};
|
|
221
|
+
type SetProps = {
|
|
222
|
+
locale?: Locale;
|
|
223
|
+
environment?: Environment;
|
|
224
|
+
};
|
|
225
|
+
declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
226
|
+
private readonly platform;
|
|
227
|
+
private readonly locale;
|
|
228
|
+
private readonly environment;
|
|
229
|
+
private readonly setEnvs;
|
|
230
|
+
private readonly setLocaleConfig;
|
|
231
|
+
readonly $envs: effector.StoreWritable<EnvironmentVariables>;
|
|
232
|
+
readonly $localeConfig: effector.StoreWritable<Locales<P, L>>;
|
|
233
|
+
constructor(opts: ConfigOptions<P, L>);
|
|
234
|
+
readonly set: (props?: SetProps) => void;
|
|
235
|
+
readonly onEnvsChange: (cb: () => void) => effector.Subscription;
|
|
236
|
+
readonly onLocaleChange: (cb: () => void) => effector.Subscription;
|
|
237
|
+
readonly getConfig: () => {
|
|
238
|
+
platform: P;
|
|
239
|
+
currentLocale: L;
|
|
240
|
+
envs: EnvironmentVariables;
|
|
241
|
+
locales: Locales<P, L>;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export { AppConfigManager, DateFormat, DateLocale };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import * as effector from 'effector';
|
|
2
|
+
|
|
3
|
+
declare enum DateFormat {
|
|
4
|
+
FULL = "YYYY-MM-DD HH:mm",
|
|
5
|
+
FULL_US = "YYYY-MM-DD hh:mm A",
|
|
6
|
+
DAY_MONTH_YEAR = "DD-MM-YYYY",
|
|
7
|
+
DAY_MONTH_YEAR_US = "YYYY-MM-DD",
|
|
8
|
+
HOURS_MINUTES = "HH:mm",
|
|
9
|
+
HOURS_MINUTES_US = "hh:mm A",
|
|
10
|
+
DAY_MONTH = "DD MMM",
|
|
11
|
+
DAY_MONTH_US = "MMM DD",
|
|
12
|
+
YEAR_MONTH_DAY = "YYYY-MM-DD",
|
|
13
|
+
FULL_WITH_SECONDS = "DD MMM YYYY HH:mm:ss",
|
|
14
|
+
FULL_WITH_SECONDS_US = "DD MMM YYYY hh:mm:ss A"
|
|
15
|
+
}
|
|
16
|
+
declare enum DateLocale {
|
|
17
|
+
US = "en",
|
|
18
|
+
SV = "sv",
|
|
19
|
+
'en-SE' = "en",
|
|
20
|
+
'sv-SE' = "sv",
|
|
21
|
+
GB = "en",
|
|
22
|
+
'en-GB' = "en",
|
|
23
|
+
CA = "en",
|
|
24
|
+
'en-CA' = "en",
|
|
25
|
+
SCT = "en",
|
|
26
|
+
'en-SCT' = "en",
|
|
27
|
+
DE = "de",
|
|
28
|
+
'de-DE' = "de"
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare enum Platform {
|
|
32
|
+
STUDENTS_WEB = "STUDENTS",
|
|
33
|
+
TEACHERS_WEB = "TEACHERS",
|
|
34
|
+
DISTRICT_DASHBOARD = "DISTRICT",
|
|
35
|
+
AUTH_WEB = "AUTH_WEB",
|
|
36
|
+
STUDENTS_APP = "STUDENTS_RN_APP",
|
|
37
|
+
TEACHERS_APP = "TEACHERS_RN_APP"
|
|
38
|
+
}
|
|
39
|
+
declare enum Locale {
|
|
40
|
+
US = "en-SE",
|
|
41
|
+
SE = "sv-SE",
|
|
42
|
+
GB = "en-GB",
|
|
43
|
+
CA = "en-CA",
|
|
44
|
+
SCT = "en-SCT",
|
|
45
|
+
DE = "de-DE"
|
|
46
|
+
}
|
|
47
|
+
declare enum Environment {
|
|
48
|
+
MARS = "MARS",
|
|
49
|
+
PROD = "PROD"
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
type RegionEnv = Readonly<{
|
|
53
|
+
API_URL: string;
|
|
54
|
+
AUTH_WEB_URL: string;
|
|
55
|
+
MYSCRIPT_HOST: string;
|
|
56
|
+
LOGGLY_TAG: string;
|
|
57
|
+
SKOLFED_AUTH: string;
|
|
58
|
+
SOCKET_URL: string;
|
|
59
|
+
STUDENTS_WEB_URL: string;
|
|
60
|
+
TEACHERS_WEB_URL: string;
|
|
61
|
+
CDN_HOST: string;
|
|
62
|
+
}>;
|
|
63
|
+
type CommonEnv = Readonly<{
|
|
64
|
+
GOOGLE_API_KEY: string;
|
|
65
|
+
DESMOS_API_KEY: string;
|
|
66
|
+
MYSCRIPT_APPLICATION_KEY: string;
|
|
67
|
+
MYSCRIPT_HMAC_KEY: string;
|
|
68
|
+
MYSCRIPT_SOCKET_KEY: string;
|
|
69
|
+
MYSCRIPT_REST_APP_KEY: string;
|
|
70
|
+
MYSCRIPT_REST_HMAC_KEY: string;
|
|
71
|
+
LOGGLY_CUSTOMER_TOKEN: string;
|
|
72
|
+
}>;
|
|
73
|
+
type EnvironmentVariables = RegionEnv & CommonEnv;
|
|
74
|
+
|
|
75
|
+
type StudentsLocaleConfig = CommonLocaleConfig & {
|
|
76
|
+
textFormatting: {
|
|
77
|
+
replaceCommaWithSpace: boolean;
|
|
78
|
+
};
|
|
79
|
+
symbols: {
|
|
80
|
+
numberDecimalSeparator: string;
|
|
81
|
+
};
|
|
82
|
+
practiceMode: {
|
|
83
|
+
languageCode: Locale;
|
|
84
|
+
defaultPracticeTreeId: string;
|
|
85
|
+
};
|
|
86
|
+
chatbot: {
|
|
87
|
+
languageName: string;
|
|
88
|
+
tts: {
|
|
89
|
+
languageCodeFallback: string;
|
|
90
|
+
voiceNameFallback: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
tts: {
|
|
94
|
+
replaceCommaWithSpace: boolean;
|
|
95
|
+
};
|
|
96
|
+
translate: {
|
|
97
|
+
languageCodeFallback: string;
|
|
98
|
+
};
|
|
99
|
+
problem: {
|
|
100
|
+
choiceInputSelector: {
|
|
101
|
+
useSmallText: boolean;
|
|
102
|
+
};
|
|
103
|
+
choiceAnswerFeedback: {
|
|
104
|
+
useSlimLayout: boolean;
|
|
105
|
+
};
|
|
106
|
+
answer: {
|
|
107
|
+
shortButton: boolean;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
exampleSolutions: {
|
|
111
|
+
languageName: string;
|
|
112
|
+
};
|
|
113
|
+
statsTab: {
|
|
114
|
+
buttonWithMinWidth: boolean;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
type DistrictLocaleConfig = CommonLocaleConfig & {
|
|
119
|
+
date: {
|
|
120
|
+
use24HourFormat: boolean;
|
|
121
|
+
locale: DateLocale;
|
|
122
|
+
formats: {
|
|
123
|
+
full: DateFormat;
|
|
124
|
+
dayMonthYear: DateFormat;
|
|
125
|
+
dayMonth: DateFormat;
|
|
126
|
+
hoursMinutes: DateFormat;
|
|
127
|
+
fullWithSeconds: DateFormat;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
declare enum MatrixMode {
|
|
133
|
+
SKILL = "SKILL",
|
|
134
|
+
STANDARD = "STANDARD"
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
type TeachersLocaleConfig = CommonLocaleConfig & {
|
|
138
|
+
emails: {
|
|
139
|
+
studentsList: string;
|
|
140
|
+
};
|
|
141
|
+
symbols: {
|
|
142
|
+
decimalSeparator: string;
|
|
143
|
+
};
|
|
144
|
+
date: {
|
|
145
|
+
use24HourFormat: boolean;
|
|
146
|
+
locale: DateLocale;
|
|
147
|
+
formats: {
|
|
148
|
+
full: DateFormat;
|
|
149
|
+
dayMonth: DateFormat;
|
|
150
|
+
hoursMinutes: DateFormat;
|
|
151
|
+
fullWithSeconds: DateFormat;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
urls: {
|
|
155
|
+
specialBook: string;
|
|
156
|
+
helpCenter: string;
|
|
157
|
+
about: string;
|
|
158
|
+
};
|
|
159
|
+
bookshelf: {
|
|
160
|
+
limitSharedExercisesTooltipWidth: boolean;
|
|
161
|
+
};
|
|
162
|
+
problemsList: {
|
|
163
|
+
showProblemComplexity: boolean;
|
|
164
|
+
};
|
|
165
|
+
practiceMode: {
|
|
166
|
+
defaultTreeIdFallback: string;
|
|
167
|
+
};
|
|
168
|
+
matrix: {
|
|
169
|
+
forceShowRecommendations: boolean;
|
|
170
|
+
forceMatrixMode?: MatrixMode;
|
|
171
|
+
};
|
|
172
|
+
pieChart: {
|
|
173
|
+
showExtraTreeDataContent: boolean;
|
|
174
|
+
};
|
|
175
|
+
problem: {
|
|
176
|
+
allowCommaDecimal: boolean;
|
|
177
|
+
};
|
|
178
|
+
getStarted: {
|
|
179
|
+
showSentEmailInfo: boolean;
|
|
180
|
+
};
|
|
181
|
+
grades: {
|
|
182
|
+
showPrefix: boolean;
|
|
183
|
+
showOtherGrade: boolean;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
type CommonLocaleConfig = Readonly<{
|
|
188
|
+
name: string;
|
|
189
|
+
languageName: string;
|
|
190
|
+
languageHeader: string;
|
|
191
|
+
contentLocale: Locale;
|
|
192
|
+
shortCode: string;
|
|
193
|
+
}>;
|
|
194
|
+
type LocalePreset = {
|
|
195
|
+
[Platform.STUDENTS_WEB]: {
|
|
196
|
+
[key in Locale]: StudentsLocaleConfig;
|
|
197
|
+
};
|
|
198
|
+
[Platform.TEACHERS_WEB]: {
|
|
199
|
+
[key in Locale]: TeachersLocaleConfig;
|
|
200
|
+
};
|
|
201
|
+
[Platform.DISTRICT_DASHBOARD]: {
|
|
202
|
+
[key in Locale]: DistrictLocaleConfig;
|
|
203
|
+
};
|
|
204
|
+
[Platform.AUTH_WEB]: {
|
|
205
|
+
[key in Locale]: DistrictLocaleConfig;
|
|
206
|
+
};
|
|
207
|
+
[Platform.STUDENTS_APP]: {
|
|
208
|
+
[key in Locale]: StudentsLocaleConfig;
|
|
209
|
+
};
|
|
210
|
+
[Platform.TEACHERS_APP]: {
|
|
211
|
+
[key in Locale]: TeachersLocaleConfig;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
type Locales<P extends Platform, L extends Locale> = LocalePreset[P][L];
|
|
216
|
+
type ConfigOptions<P extends Platform, L extends Locale> = {
|
|
217
|
+
platform: P;
|
|
218
|
+
locale: L;
|
|
219
|
+
environment: Environment;
|
|
220
|
+
};
|
|
221
|
+
type SetProps = {
|
|
222
|
+
locale?: Locale;
|
|
223
|
+
environment?: Environment;
|
|
224
|
+
};
|
|
225
|
+
declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
226
|
+
private readonly platform;
|
|
227
|
+
private readonly locale;
|
|
228
|
+
private readonly environment;
|
|
229
|
+
private readonly setEnvs;
|
|
230
|
+
private readonly setLocaleConfig;
|
|
231
|
+
readonly $envs: effector.StoreWritable<EnvironmentVariables>;
|
|
232
|
+
readonly $localeConfig: effector.StoreWritable<Locales<P, L>>;
|
|
233
|
+
constructor(opts: ConfigOptions<P, L>);
|
|
234
|
+
readonly set: (props?: SetProps) => void;
|
|
235
|
+
readonly onEnvsChange: (cb: () => void) => effector.Subscription;
|
|
236
|
+
readonly onLocaleChange: (cb: () => void) => effector.Subscription;
|
|
237
|
+
readonly getConfig: () => {
|
|
238
|
+
platform: P;
|
|
239
|
+
currentLocale: L;
|
|
240
|
+
envs: EnvironmentVariables;
|
|
241
|
+
locales: Locales<P, L>;
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export { AppConfigManager, DateFormat, DateLocale };
|