@mxenabled/connect-widget 0.3.0 → 0.4.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.es.js +7 -7
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -53419,16 +53419,17 @@ MessageBox.propTypes = {
|
|
|
53419
53419
|
MessageBox.displayName = "MessageBox";
|
|
53420
53420
|
|
|
53421
53421
|
const InstitutionBlock = ({ institution, style }) => {
|
|
53422
|
-
const { guid, name, url } = institution;
|
|
53422
|
+
const { guid, logo_url, name, url } = institution;
|
|
53423
53423
|
const tokens = useTokens();
|
|
53424
53424
|
const styles = getStyles$V(tokens);
|
|
53425
53425
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-test": "institution-block", style: { ...styles.institutionBlock, ...style }, children: [
|
|
53426
53426
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
53427
|
-
|
|
53427
|
+
De,
|
|
53428
53428
|
{
|
|
53429
53429
|
alt: `${name} logo`,
|
|
53430
53430
|
"data-test": "institution-block-logo",
|
|
53431
53431
|
institutionGuid: guid,
|
|
53432
|
+
logoUrl: logo_url,
|
|
53432
53433
|
size: 64
|
|
53433
53434
|
}
|
|
53434
53435
|
),
|
|
@@ -57595,7 +57596,7 @@ const Credentials = React__default.forwardRef(
|
|
|
57595
57596
|
onSubmit: (e) => e.preventDefault(),
|
|
57596
57597
|
style: styles.form,
|
|
57597
57598
|
children: [
|
|
57598
|
-
credentials.map((field
|
|
57599
|
+
credentials.map((field) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: field.field_type === CREDENTIAL_FIELD_TYPES.PASSWORD ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: errors[field.field_name] ? styles.inputError : styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
57599
57600
|
ProtectedTextField,
|
|
57600
57601
|
{
|
|
57601
57602
|
InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
|
|
@@ -57625,7 +57626,6 @@ const Credentials = React__default.forwardRef(
|
|
|
57625
57626
|
{
|
|
57626
57627
|
autoCapitalize: "none",
|
|
57627
57628
|
autoComplete: "new-password",
|
|
57628
|
-
autoFocus: i === 0,
|
|
57629
57629
|
disabled: isProcessingMember,
|
|
57630
57630
|
error: !!errors[field.field_name],
|
|
57631
57631
|
fullWidth: true,
|
|
@@ -64895,7 +64895,7 @@ const NON_CONECTED_REASONS = [
|
|
|
64895
64895
|
];
|
|
64896
64896
|
|
|
64897
64897
|
const ConnectNavigationHeader = (props) => {
|
|
64898
|
-
const
|
|
64898
|
+
const goBackButtonContainerRef = useRef();
|
|
64899
64899
|
const tokens = useTokens();
|
|
64900
64900
|
const styles = getStyles$2(tokens);
|
|
64901
64901
|
const step = useSelector(
|
|
@@ -64913,7 +64913,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64913
64913
|
}, [props.stepComponentRef]);
|
|
64914
64914
|
useEffect(() => {
|
|
64915
64915
|
if (shouldShowGlobalBackButton) {
|
|
64916
|
-
|
|
64916
|
+
goBackButtonContainerRef.current.focus();
|
|
64917
64917
|
}
|
|
64918
64918
|
}, [shouldShowGlobalBackButton, step]);
|
|
64919
64919
|
const backButtonNavigationHandler = () => {
|
|
@@ -64923,7 +64923,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64923
64923
|
props.connectGoBack();
|
|
64924
64924
|
}
|
|
64925
64925
|
};
|
|
64926
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "navigation-header", style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.content, children: shouldShowGlobalBackButton && /* @__PURE__ */ jsxRuntimeExports.jsx(GoBackButton, { handleGoBack: backButtonNavigationHandler
|
|
64926
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "navigation-header", style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: goBackButtonContainerRef, style: styles.content, tabIndex: -1, children: shouldShowGlobalBackButton && /* @__PURE__ */ jsxRuntimeExports.jsx(GoBackButton, { handleGoBack: backButtonNavigationHandler }) }) });
|
|
64927
64927
|
};
|
|
64928
64928
|
ConnectNavigationHeader.propTypes = {
|
|
64929
64929
|
connectGoBack: PropTypes$1.func.isRequired,
|