@mxenabled/connect-widget 0.2.0 → 0.4.0
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 +56 -24
- 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
|
@@ -5131,23 +5131,39 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
var _baseFindIndex = baseFindIndex$2;
|
|
5133
5133
|
|
|
5134
|
-
var
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5134
|
+
var _trimmedEndIndex;
|
|
5135
|
+
var hasRequired_trimmedEndIndex;
|
|
5136
|
+
|
|
5137
|
+
function require_trimmedEndIndex () {
|
|
5138
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
|
5139
|
+
hasRequired_trimmedEndIndex = 1;
|
|
5140
|
+
var reWhitespace = /\s/;
|
|
5141
|
+
function trimmedEndIndex(string) {
|
|
5142
|
+
var index = string.length;
|
|
5143
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5144
|
+
}
|
|
5145
|
+
return index;
|
|
5146
|
+
}
|
|
5147
|
+
_trimmedEndIndex = trimmedEndIndex;
|
|
5148
|
+
return _trimmedEndIndex;
|
|
5140
5149
|
}
|
|
5141
|
-
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5142
5150
|
|
|
5143
|
-
var
|
|
5144
|
-
var
|
|
5145
|
-
|
|
5146
|
-
|
|
5151
|
+
var _baseTrim;
|
|
5152
|
+
var hasRequired_baseTrim;
|
|
5153
|
+
|
|
5154
|
+
function require_baseTrim () {
|
|
5155
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
|
5156
|
+
hasRequired_baseTrim = 1;
|
|
5157
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
|
5158
|
+
var reTrimStart = /^\s+/;
|
|
5159
|
+
function baseTrim(string) {
|
|
5160
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5161
|
+
}
|
|
5162
|
+
_baseTrim = baseTrim;
|
|
5163
|
+
return _baseTrim;
|
|
5147
5164
|
}
|
|
5148
|
-
var _baseTrim = baseTrim$1;
|
|
5149
5165
|
|
|
5150
|
-
var baseTrim =
|
|
5166
|
+
var baseTrim = require_baseTrim(), isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5151
5167
|
var NAN = 0 / 0;
|
|
5152
5168
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5153
5169
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -5354,7 +5370,7 @@ const ReadableStatuses$1 = {
|
|
|
5354
5370
|
IMPAIRED: 20,
|
|
5355
5371
|
PENDING: 21
|
|
5356
5372
|
};
|
|
5357
|
-
const ProcessingStatuses = [0, 15, 18];
|
|
5373
|
+
const ProcessingStatuses = [0, 8, 15, 18];
|
|
5358
5374
|
const ErrorStatuses$1 = [1, 2, 3, 4, 5, 7, 9, 10, 11, 12, 13, 14, 16, 17, 19, 20];
|
|
5359
5375
|
|
|
5360
5376
|
const AGG_MODE = "aggregation";
|
|
@@ -8613,7 +8629,7 @@ var hasRequiredTrim;
|
|
|
8613
8629
|
function requireTrim () {
|
|
8614
8630
|
if (hasRequiredTrim) return trim_1;
|
|
8615
8631
|
hasRequiredTrim = 1;
|
|
8616
|
-
var baseToString = _baseToString, baseTrim =
|
|
8632
|
+
var baseToString = _baseToString, baseTrim = require_baseTrim(), castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8617
8633
|
function trim(string, chars, guard) {
|
|
8618
8634
|
string = toString(string);
|
|
8619
8635
|
if (string && (guard || chars === void 0)) {
|
|
@@ -50052,8 +50068,10 @@ const InstitutionTile = (props) => {
|
|
|
50052
50068
|
zIndex: 100
|
|
50053
50069
|
},
|
|
50054
50070
|
"&:focus": {
|
|
50055
|
-
|
|
50056
|
-
outline
|
|
50071
|
+
outline: `1px solid ${tokens.BorderColor.InputFocus}`,
|
|
50072
|
+
// We offset the outline by a negative 1px so that
|
|
50073
|
+
// It's placed exactly at the border edge of the element.
|
|
50074
|
+
outlineOffset: "-1px",
|
|
50057
50075
|
boxShadow: "none"
|
|
50058
50076
|
},
|
|
50059
50077
|
"&:active": {
|
|
@@ -50090,9 +50108,6 @@ const getStyles$1c = (tokens) => {
|
|
|
50090
50108
|
boxSizing: "border-box",
|
|
50091
50109
|
alignItems: "center",
|
|
50092
50110
|
width: "100%",
|
|
50093
|
-
// We provide a transparent border here to ensure our box sizing is the
|
|
50094
|
-
// same with or without our focus border applied.
|
|
50095
|
-
border: "1px solid transparent",
|
|
50096
50111
|
zIndex: 1
|
|
50097
50112
|
},
|
|
50098
50113
|
institutionBodyContainer: {
|
|
@@ -53404,21 +53419,22 @@ MessageBox.propTypes = {
|
|
|
53404
53419
|
MessageBox.displayName = "MessageBox";
|
|
53405
53420
|
|
|
53406
53421
|
const InstitutionBlock = ({ institution, style }) => {
|
|
53407
|
-
const { guid, name, url } = institution;
|
|
53422
|
+
const { guid, logo_url, name, url } = institution;
|
|
53408
53423
|
const tokens = useTokens();
|
|
53409
53424
|
const styles = getStyles$V(tokens);
|
|
53410
53425
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { "data-test": "institution-block", style: { ...styles.institutionBlock, ...style }, children: [
|
|
53411
53426
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
53412
|
-
|
|
53427
|
+
De,
|
|
53413
53428
|
{
|
|
53414
53429
|
alt: `${name} logo`,
|
|
53415
53430
|
"data-test": "institution-block-logo",
|
|
53416
53431
|
institutionGuid: guid,
|
|
53432
|
+
logoUrl: logo_url,
|
|
53417
53433
|
size: 64
|
|
53418
53434
|
}
|
|
53419
53435
|
),
|
|
53420
53436
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.institutionInfo, children: [
|
|
53421
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionName, children: guid
|
|
53437
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionName, children: guid?.startsWith("INS-MANUAL") ? __("Manual Institution") : name }),
|
|
53422
53438
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.institutionUrl, children: formatUrl(url) })
|
|
53423
53439
|
] })
|
|
53424
53440
|
] });
|
|
@@ -61724,6 +61740,7 @@ const getViewByStatus = (status) => {
|
|
|
61724
61740
|
const VerifyExistingMember = (props) => {
|
|
61725
61741
|
useAnalyticsPath(...PageviewInfo.CONNECT_VERIFY_EXISTING_MEMBER);
|
|
61726
61742
|
const { api } = useApi();
|
|
61743
|
+
const searchForInstitution = useRef(null);
|
|
61727
61744
|
const dispatch = useDispatch();
|
|
61728
61745
|
const { members, onAddNew } = props;
|
|
61729
61746
|
const iavMembers = members.filter((member) => member.verification_is_enabled);
|
|
@@ -61738,6 +61755,9 @@ const VerifyExistingMember = (props) => {
|
|
|
61738
61755
|
setSelectedMember(selectedMember2);
|
|
61739
61756
|
setInstitution((state) => ({ ...state, isLoadingInstitution: true }));
|
|
61740
61757
|
};
|
|
61758
|
+
useEffect(() => {
|
|
61759
|
+
focusElement(searchForInstitution.current);
|
|
61760
|
+
}, []);
|
|
61741
61761
|
useEffect(() => {
|
|
61742
61762
|
if (!isLoadingInstitution || !selectedMember) return;
|
|
61743
61763
|
api.loadInstitutionByGuid(selectedMember.institution_guid).then((institution) => {
|
|
@@ -61768,7 +61788,19 @@ const VerifyExistingMember = (props) => {
|
|
|
61768
61788
|
);
|
|
61769
61789
|
}
|
|
61770
61790
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: styles.container, children: [
|
|
61771
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
61791
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
61792
|
+
Text,
|
|
61793
|
+
{
|
|
61794
|
+
"aria-label": __("Select your institution"),
|
|
61795
|
+
as: "H2",
|
|
61796
|
+
"data-test": "verify-existing-member-header",
|
|
61797
|
+
ref: searchForInstitution,
|
|
61798
|
+
style: styles.headerText,
|
|
61799
|
+
tabIndex: -1,
|
|
61800
|
+
tag: "h2",
|
|
61801
|
+
children: __("Select your institution")
|
|
61802
|
+
}
|
|
61803
|
+
),
|
|
61772
61804
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { as: "Paragraph", "data-test": "verify-existing-member-text", style: styles.primaryParagraph, children: __(
|
|
61773
61805
|
"Choose an institution that’s already connected and select accounts to share, or search for a different one."
|
|
61774
61806
|
) }),
|