@mxenabled/connect-widget 0.4.0 → 0.4.2
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 +23 -40
- 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,39 +5131,23 @@ function baseFindIndex$2(array, predicate, fromIndex, fromRight) {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
var _baseFindIndex = baseFindIndex$2;
|
|
5133
5133
|
|
|
5134
|
-
var
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
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;
|
|
5134
|
+
var reWhitespace = /\s/;
|
|
5135
|
+
function trimmedEndIndex$1(string) {
|
|
5136
|
+
var index = string.length;
|
|
5137
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
|
5138
|
+
}
|
|
5139
|
+
return index;
|
|
5149
5140
|
}
|
|
5141
|
+
var _trimmedEndIndex = trimmedEndIndex$1;
|
|
5150
5142
|
|
|
5151
|
-
var
|
|
5152
|
-
var
|
|
5153
|
-
|
|
5154
|
-
|
|
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;
|
|
5143
|
+
var trimmedEndIndex = _trimmedEndIndex;
|
|
5144
|
+
var reTrimStart = /^\s+/;
|
|
5145
|
+
function baseTrim$1(string) {
|
|
5146
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
5164
5147
|
}
|
|
5148
|
+
var _baseTrim = baseTrim$1;
|
|
5165
5149
|
|
|
5166
|
-
var baseTrim =
|
|
5150
|
+
var baseTrim = _baseTrim, isObject$7 = isObject_1, isSymbol$1 = isSymbol_1;
|
|
5167
5151
|
var NAN = 0 / 0;
|
|
5168
5152
|
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
5169
5153
|
var reIsBinary = /^0b[01]+$/i;
|
|
@@ -8629,7 +8613,7 @@ var hasRequiredTrim;
|
|
|
8629
8613
|
function requireTrim () {
|
|
8630
8614
|
if (hasRequiredTrim) return trim_1;
|
|
8631
8615
|
hasRequiredTrim = 1;
|
|
8632
|
-
var baseToString = _baseToString, baseTrim =
|
|
8616
|
+
var baseToString = _baseToString, baseTrim = _baseTrim, castSlice = require_castSlice(), charsEndIndex = require_charsEndIndex(), charsStartIndex = require_charsStartIndex(), stringToArray = require_stringToArray(), toString = toString_1;
|
|
8633
8617
|
function trim(string, chars, guard) {
|
|
8634
8618
|
string = toString(string);
|
|
8635
8619
|
if (string && (guard || chars === void 0)) {
|
|
@@ -56019,7 +56003,7 @@ const DEFAULT_POLLING_STATE = {
|
|
|
56019
56003
|
// message to show the end user
|
|
56020
56004
|
};
|
|
56021
56005
|
function pollMember(memberGuid, api) {
|
|
56022
|
-
return interval(
|
|
56006
|
+
return interval(15e3).pipe(
|
|
56023
56007
|
switchMap(
|
|
56024
56008
|
() => (
|
|
56025
56009
|
// Poll the currentMember. Catch errors but don't handle it here
|
|
@@ -57596,7 +57580,7 @@ const Credentials = React__default.forwardRef(
|
|
|
57596
57580
|
onSubmit: (e) => e.preventDefault(),
|
|
57597
57581
|
style: styles.form,
|
|
57598
57582
|
children: [
|
|
57599
|
-
credentials.map((field
|
|
57583
|
+
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(
|
|
57600
57584
|
ProtectedTextField,
|
|
57601
57585
|
{
|
|
57602
57586
|
InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
|
|
@@ -57626,7 +57610,6 @@ const Credentials = React__default.forwardRef(
|
|
|
57626
57610
|
{
|
|
57627
57611
|
autoCapitalize: "none",
|
|
57628
57612
|
autoComplete: "new-password",
|
|
57629
|
-
autoFocus: i === 0,
|
|
57630
57613
|
disabled: isProcessingMember,
|
|
57631
57614
|
error: !!errors[field.field_name],
|
|
57632
57615
|
fullWidth: true,
|
|
@@ -58401,13 +58384,13 @@ const Connecting = (props) => {
|
|
|
58401
58384
|
filter((pollingState) => pollingState.jobIsDone),
|
|
58402
58385
|
pluck("currentResponse"),
|
|
58403
58386
|
take(1),
|
|
58404
|
-
mergeMap((
|
|
58405
|
-
const loadLatestJob$ = defer(() => api.loadJob(
|
|
58406
|
-
map((job) => ({ member:
|
|
58387
|
+
mergeMap((polledMember) => {
|
|
58388
|
+
const loadLatestJob$ = defer(() => api.loadJob(member.most_recent_job_guid)).pipe(
|
|
58389
|
+
map((job) => ({ member: polledMember, job, hasInvalidData: false }))
|
|
58407
58390
|
);
|
|
58408
58391
|
if (connectConfig.mode === VERIFY_MODE) {
|
|
58409
58392
|
const invalidData$ = of({ member: {}, job: {}, hasInvalidData: true });
|
|
58410
|
-
if (hasNoVerifiableAccounts(
|
|
58393
|
+
if (hasNoVerifiableAccounts(polledMember, connectConfig) || hasNoSingleAccountSelectOptions(polledMember)) {
|
|
58411
58394
|
return invalidData$;
|
|
58412
58395
|
}
|
|
58413
58396
|
}
|
|
@@ -64896,7 +64879,7 @@ const NON_CONECTED_REASONS = [
|
|
|
64896
64879
|
];
|
|
64897
64880
|
|
|
64898
64881
|
const ConnectNavigationHeader = (props) => {
|
|
64899
|
-
const
|
|
64882
|
+
const goBackButtonContainerRef = useRef();
|
|
64900
64883
|
const tokens = useTokens();
|
|
64901
64884
|
const styles = getStyles$2(tokens);
|
|
64902
64885
|
const step = useSelector(
|
|
@@ -64914,7 +64897,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64914
64897
|
}, [props.stepComponentRef]);
|
|
64915
64898
|
useEffect(() => {
|
|
64916
64899
|
if (shouldShowGlobalBackButton) {
|
|
64917
|
-
|
|
64900
|
+
goBackButtonContainerRef.current.focus();
|
|
64918
64901
|
}
|
|
64919
64902
|
}, [shouldShowGlobalBackButton, step]);
|
|
64920
64903
|
const backButtonNavigationHandler = () => {
|
|
@@ -64924,7 +64907,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64924
64907
|
props.connectGoBack();
|
|
64925
64908
|
}
|
|
64926
64909
|
};
|
|
64927
|
-
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
|
|
64910
|
+
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 }) }) });
|
|
64928
64911
|
};
|
|
64929
64912
|
ConnectNavigationHeader.propTypes = {
|
|
64930
64913
|
connectGoBack: PropTypes$1.func.isRequired,
|