@magmamath/frontend-config 1.7.6 → 1.7.7
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -407,6 +407,7 @@ type SSO_DE = {
|
|
|
407
407
|
GOOGLE_AUTH: string;
|
|
408
408
|
MICROSOFT_AUTH: string;
|
|
409
409
|
VIDIS_AUTH: string;
|
|
410
|
+
VIDIS_LOGOUT: string;
|
|
410
411
|
};
|
|
411
412
|
type SSO_PL = {
|
|
412
413
|
GOOGLE_AUTH: string;
|
|
@@ -498,6 +499,11 @@ type SSOByLocale = {
|
|
|
498
499
|
declare const SSO_VIDIS_CONFIG: SSOConfig<SSO_DE & {
|
|
499
500
|
AUTH_WEB_URL: string;
|
|
500
501
|
}>;
|
|
502
|
+
type VidisLogoutParams = {
|
|
503
|
+
idToken: string;
|
|
504
|
+
postLogoutRedirectUri: string;
|
|
505
|
+
};
|
|
506
|
+
declare const getVidisLogoutUrl: (envs: Pick<SSO_DE, "VIDIS_LOGOUT">, { idToken, postLogoutRedirectUri }: VidisLogoutParams) => string;
|
|
501
507
|
|
|
502
508
|
type RegionSpecificVars = {
|
|
503
509
|
API_URL: string;
|
|
@@ -1177,4 +1183,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
1177
1183
|
};
|
|
1178
1184
|
}
|
|
1179
1185
|
|
|
1180
|
-
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, DrawBoardSectionName, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, HIGH_SCHOOL_STRING_GRADES, type HighSchoolGrades, HomeRegion, IQ_CALENDAR_CONFIG, 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, type ManipulativeOverride, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, type MultiplicationConfig, type MultiplicationGradeRule, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, type NumericGrade, 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_IQ, 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, SSO_VIDIS_CONFIG, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment, getMultiplicationSymbol, isHighSchoolStringGrade };
|
|
1186
|
+
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, DrawBoardSectionName, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, HIGH_SCHOOL_STRING_GRADES, type HighSchoolGrades, HomeRegion, IQ_CALENDAR_CONFIG, 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, type ManipulativeOverride, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, type MultiplicationConfig, type MultiplicationGradeRule, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, type NumericGrade, 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_IQ, 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, SSO_VIDIS_CONFIG, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment, getMultiplicationSymbol, getVidisLogoutUrl, isHighSchoolStringGrade };
|
package/dist/index.d.ts
CHANGED
|
@@ -407,6 +407,7 @@ type SSO_DE = {
|
|
|
407
407
|
GOOGLE_AUTH: string;
|
|
408
408
|
MICROSOFT_AUTH: string;
|
|
409
409
|
VIDIS_AUTH: string;
|
|
410
|
+
VIDIS_LOGOUT: string;
|
|
410
411
|
};
|
|
411
412
|
type SSO_PL = {
|
|
412
413
|
GOOGLE_AUTH: string;
|
|
@@ -498,6 +499,11 @@ type SSOByLocale = {
|
|
|
498
499
|
declare const SSO_VIDIS_CONFIG: SSOConfig<SSO_DE & {
|
|
499
500
|
AUTH_WEB_URL: string;
|
|
500
501
|
}>;
|
|
502
|
+
type VidisLogoutParams = {
|
|
503
|
+
idToken: string;
|
|
504
|
+
postLogoutRedirectUri: string;
|
|
505
|
+
};
|
|
506
|
+
declare const getVidisLogoutUrl: (envs: Pick<SSO_DE, "VIDIS_LOGOUT">, { idToken, postLogoutRedirectUri }: VidisLogoutParams) => string;
|
|
501
507
|
|
|
502
508
|
type RegionSpecificVars = {
|
|
503
509
|
API_URL: string;
|
|
@@ -1177,4 +1183,4 @@ declare class AppConfigManager<P extends Platform, L extends Locale> {
|
|
|
1177
1183
|
};
|
|
1178
1184
|
}
|
|
1179
1185
|
|
|
1180
|
-
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, DrawBoardSectionName, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, HIGH_SCHOOL_STRING_GRADES, type HighSchoolGrades, HomeRegion, IQ_CALENDAR_CONFIG, 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, type ManipulativeOverride, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, type MultiplicationConfig, type MultiplicationGradeRule, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, type NumericGrade, 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_IQ, 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, SSO_VIDIS_CONFIG, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment, getMultiplicationSymbol, isHighSchoolStringGrade };
|
|
1186
|
+
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, DrawBoardSectionName, DrawboardCoinVariant, EN_CALENDAR_CONFIG, ES_CALENDAR_CONFIG, type EnvPreset, Environment, type EnvironmentVars, FI_CALENDAR_CONFIG, FR_CALENDAR_CONFIG, Grade, type GradeData, HIGH_SCHOOL_STRING_GRADES, type HighSchoolGrades, HomeRegion, IQ_CALENDAR_CONFIG, 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, type ManipulativeOverride, MatrixMode, type MobileBaseVars, type MobileCommon, type MobileEuLocalePreset, type MobileLocaleConfig, type MobileVars, type MobileVarsPreset, MomentDateLocale, type MultiplicationConfig, type MultiplicationGradeRule, MultiplicationSymbol, NL_BE_CALENDAR_CONFIG, NL_CALENDAR_CONFIG, NO_CALENDAR_CONFIG, NumberDecimalSeparator, NumberGroupingSeparator, type NumericGrade, 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_IQ, 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, SSO_VIDIS_CONFIG, SV_FI_CALENDAR_CONFIG, type StudentsLocaleConfig, type StudentsWebCommon, type StudentsWebVars, type StudentsWebVarsPreset, TTSOverrideSymbol, type TeachersLocaleConfig, type TeachersWebCommon, type TeachersWebVars, type TeachersWebVarsPreset, TreeLevel, buildTargetToEnvironment, getMultiplicationSymbol, getVidisLogoutUrl, isHighSchoolStringGrade };
|
package/dist/index.js
CHANGED
|
@@ -1367,6 +1367,12 @@ var SSO_VIDIS_CONFIG = {
|
|
|
1367
1367
|
return url.href;
|
|
1368
1368
|
}
|
|
1369
1369
|
};
|
|
1370
|
+
var getVidisLogoutUrl = (envs, { idToken, postLogoutRedirectUri }) => {
|
|
1371
|
+
const url = new URL(envs.VIDIS_LOGOUT);
|
|
1372
|
+
url.searchParams.set("id_token_hint", idToken);
|
|
1373
|
+
url.searchParams.set("post_logout_redirect_uri", postLogoutRedirectUri);
|
|
1374
|
+
return url.href;
|
|
1375
|
+
};
|
|
1370
1376
|
|
|
1371
1377
|
// src/configs/env/env.helpers.ts
|
|
1372
1378
|
var ENV_BY_BUILD_TARGET = {
|
|
@@ -1655,6 +1661,7 @@ var ENV_AUTH_WEB_DE_MARS = {
|
|
|
1655
1661
|
GOOGLE_AUTH: "https://api.mars.magmamath.com/v2/auth/google",
|
|
1656
1662
|
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
1657
1663
|
VIDIS_AUTH: "https://api.mars.magmamath.com/v2/auth/vidis/",
|
|
1664
|
+
VIDIS_LOGOUT: "https://aai-test.vidis.schule/auth/realms/vidis/protocol/openid-connect/logout",
|
|
1658
1665
|
INTERCOM_APP_ID: "tjidhu4j",
|
|
1659
1666
|
TOLGEE_API_URL: "https://tolgee.matteappen.se",
|
|
1660
1667
|
TOLGEE_API_KEY: "tgpak_gnptczbqmfzw6mtphbug2olign2wc4djgy2wmmdvnjrgq"
|
|
@@ -2257,6 +2264,7 @@ var ENV_AUTH_WEB_DE_PROD = {
|
|
|
2257
2264
|
GOOGLE_AUTH: "https://api.magmamath.com/v2/auth/google",
|
|
2258
2265
|
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
2259
2266
|
VIDIS_AUTH: "https://api.magmamath.com/v2/auth/vidis/",
|
|
2267
|
+
VIDIS_LOGOUT: "https://aai.vidis.schule/auth/realms/vidis/protocol/openid-connect/logout",
|
|
2260
2268
|
INTERCOM_APP_ID: "tjidhu4j"
|
|
2261
2269
|
};
|
|
2262
2270
|
|
|
@@ -2620,6 +2628,7 @@ var ENV_MOBILE_DE_MARS = {
|
|
|
2620
2628
|
GOOGLE_AUTH: "https://api.mars.magmamath.com/v2/auth/google",
|
|
2621
2629
|
MICROSOFT_AUTH: "https://api.mars.magmamath.com/v2/auth/microsoft",
|
|
2622
2630
|
VIDIS_AUTH: "https://api.mars.magmamath.com/v2/auth/vidis/",
|
|
2631
|
+
VIDIS_LOGOUT: "https://aai-test.vidis.schule/auth/realms/vidis/protocol/openid-connect/logout",
|
|
2623
2632
|
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.MARS.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
2624
2633
|
};
|
|
2625
2634
|
|
|
@@ -2746,6 +2755,7 @@ var ENV_MOBILE_DE_PROD = {
|
|
|
2746
2755
|
GOOGLE_AUTH: "https://api.magmamath.com/v2/auth/google",
|
|
2747
2756
|
MICROSOFT_AUTH: "https://api.magmamath.com/v2/auth/microsoft",
|
|
2748
2757
|
VIDIS_AUTH: "https://api.magmamath.com/v2/auth/vidis/",
|
|
2758
|
+
VIDIS_LOGOUT: "https://aai.vidis.schule/auth/realms/vidis/protocol/openid-connect/logout",
|
|
2749
2759
|
PROBLEM_CREATOR_URL: `${PLATFORM_URLS.PROD.TEACHERS_WEB_URL}/content/react-native/problems/add`
|
|
2750
2760
|
};
|
|
2751
2761
|
|
|
@@ -12451,6 +12461,7 @@ exports.TTSOverrideSymbol = TTSOverrideSymbol;
|
|
|
12451
12461
|
exports.TreeLevel = TreeLevel;
|
|
12452
12462
|
exports.buildTargetToEnvironment = buildTargetToEnvironment;
|
|
12453
12463
|
exports.getMultiplicationSymbol = getMultiplicationSymbol;
|
|
12464
|
+
exports.getVidisLogoutUrl = getVidisLogoutUrl;
|
|
12454
12465
|
exports.isHighSchoolStringGrade = isHighSchoolStringGrade;
|
|
12455
12466
|
//# sourceMappingURL=index.js.map
|
|
12456
12467
|
//# sourceMappingURL=index.js.map
|