keycloakify 8.3.2 → 8.3.3
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/login/pages/Info.js
CHANGED
@@ -3,7 +3,7 @@ import { assert } from "../../tools/assert";
|
|
3
3
|
export default function Info(props) {
|
4
4
|
const { kcContext, i18n, doUseDefaultCss, Template, classes } = props;
|
5
5
|
const { msgStr, msg } = i18n;
|
6
|
-
assert(kcContext.message !== undefined);
|
6
|
+
assert(kcContext.message !== undefined, "No message in kcContext.message, there will always be a message in production context, add it in your mock");
|
7
7
|
const { messageHeader, message, requiredActions, skipLink, pageRedirectUri, actionUri, client } = kcContext;
|
8
8
|
return (_jsx(Template, Object.assign({}, { kcContext, i18n, doUseDefaultCss, classes }, { displayMessage: false, headerNode: messageHeader !== undefined ? _jsx(_Fragment, { children: messageHeader }) : _jsx(_Fragment, { children: message.summary }) }, { children: _jsxs("div", Object.assign({ id: "kc-info-message" }, { children: [_jsxs("p", Object.assign({ className: "instruction" }, { children: [message.summary, requiredActions !== undefined && (_jsx("b", { children: requiredActions.map(requiredAction => msgStr(`requiredAction.${requiredAction}`)).join(",") }))] })), !skipLink && pageRedirectUri !== undefined ? (_jsx("p", { children: _jsx("a", Object.assign({ href: pageRedirectUri }, { children: msg("backToApplication") })) })) : actionUri !== undefined ? (_jsx("p", { children: _jsx("a", Object.assign({ href: actionUri }, { children: msg("proceedWithAction") })) })) : (client.baseUrl !== undefined && (_jsx("p", { children: _jsx("a", Object.assign({ href: client.baseUrl }, { children: msg("backToApplication") })) })))] })) })));
|
9
9
|
}
|
package/login/pages/Info.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/login/pages/Info.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAKlD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAkE;IAC3F,MAAM,EAAE,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eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1C,sBACI,0BAAG,IAAI,EAAE,eAAe,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GACxD,CACP,CAAC,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,CAC1B,sBACI,0BAAG,IAAI,EAAE,SAAS,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GAClD,CACP,CAAC,CAAC,CAAC,CACA,MAAM,CAAC,OAAO,KAAK,SAAS,IAAI,CAC5B,sBACI,0BAAG,IAAI,EAAE,MAAM,CAAC,OAAO,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GACvD,CACP,CACJ,KACC,IACC,CACd,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
package/src/login/pages/Info.tsx
CHANGED
@@ -8,7 +8,10 @@ export default function Info(props: PageProps<Extract<KcContext, { pageId: "info
|
|
8
8
|
|
9
9
|
const { msgStr, msg } = i18n;
|
10
10
|
|
11
|
-
assert(
|
11
|
+
assert(
|
12
|
+
kcContext.message !== undefined,
|
13
|
+
"No message in kcContext.message, there will always be a message in production context, add it in your mock"
|
14
|
+
);
|
12
15
|
|
13
16
|
const { messageHeader, message, requiredActions, skipLink, pageRedirectUri, actionUri, client } = kcContext;
|
14
17
|
|