@mxenabled/connect-widget 2.3.2 → 2.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 +13 -3
- 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
|
@@ -71556,6 +71556,7 @@ const defaultApiValue = {
|
|
|
71556
71556
|
loadOAuthState: () => Promise.resolve({}),
|
|
71557
71557
|
loadOAuthStates: () => Promise.resolve([]),
|
|
71558
71558
|
getOAuthWindowURI: () => Promise.resolve({}),
|
|
71559
|
+
oAuthStart: () => Promise.resolve(),
|
|
71559
71560
|
// Support
|
|
71560
71561
|
createSupportTicket: () => Promise.resolve(),
|
|
71561
71562
|
//Job
|
|
@@ -75494,6 +75495,7 @@ InstructionList.propTypes = {
|
|
|
75494
75495
|
};
|
|
75495
75496
|
|
|
75496
75497
|
const OAuthDefault = (props) => {
|
|
75498
|
+
const { api } = useApi();
|
|
75497
75499
|
useAnalyticsPath(...PageviewInfo.CONNECT_OAUTH_INSTRUCTIONS, {
|
|
75498
75500
|
institution_guid: props.institution.guid,
|
|
75499
75501
|
institution_name: props.institution.name
|
|
@@ -75546,8 +75548,10 @@ const OAuthDefault = (props) => {
|
|
|
75546
75548
|
sendAnalyticsEvent(AnalyticEvents.OAUTH_DEFAULT_GO_TO_INSTITUTION, {
|
|
75547
75549
|
institution_guid: props.institution.guid,
|
|
75548
75550
|
institution_name: props.institution.name,
|
|
75549
|
-
member_guid: sha256Exports.sha256(props.currentMember.guid)
|
|
75550
|
-
|
|
75551
|
+
member_guid: sha256Exports.sha256(props.currentMember.guid)
|
|
75552
|
+
});
|
|
75553
|
+
api?.oAuthStart({
|
|
75554
|
+
member: props.currentMember
|
|
75551
75555
|
});
|
|
75552
75556
|
props.onSignInClick();
|
|
75553
75557
|
},
|
|
@@ -77380,7 +77384,7 @@ const Credentials = React__default.forwardRef(
|
|
|
77380
77384
|
onSubmit: (e) => e.preventDefault(),
|
|
77381
77385
|
style: styles.form,
|
|
77382
77386
|
children: [
|
|
77383
|
-
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.
|
|
77387
|
+
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.passwordInputError : {}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
77384
77388
|
ProtectedTextField,
|
|
77385
77389
|
{
|
|
77386
77390
|
InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
|
|
@@ -77405,6 +77409,7 @@ const Credentials = React__default.forwardRef(
|
|
|
77405
77409
|
},
|
|
77406
77410
|
onFocus: handleFocus,
|
|
77407
77411
|
onKeyDown: handlePasswordEnterChange,
|
|
77412
|
+
required: true,
|
|
77408
77413
|
spellCheck: "false",
|
|
77409
77414
|
type: validations.showPassword ? "text" : "password",
|
|
77410
77415
|
value: values[field.field_name] || ""
|
|
@@ -77427,10 +77432,12 @@ const Credentials = React__default.forwardRef(
|
|
|
77427
77432
|
label: field.label,
|
|
77428
77433
|
name: field.field_name,
|
|
77429
77434
|
onChange: handleUserNameTextChange,
|
|
77435
|
+
required: true,
|
|
77430
77436
|
spellCheck: "false",
|
|
77431
77437
|
value: values[field.field_name] || ""
|
|
77432
77438
|
}
|
|
77433
77439
|
) }) }, field.guid)),
|
|
77440
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(RequiredFieldNote, {}),
|
|
77434
77441
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
77435
77442
|
Button$2,
|
|
77436
77443
|
{
|
|
@@ -77503,6 +77510,9 @@ const getStyles$G = (tokens) => {
|
|
|
77503
77510
|
marginBottom: tokens.Spacing.Large,
|
|
77504
77511
|
marginTop: tokens.Spacing.XSmall
|
|
77505
77512
|
},
|
|
77513
|
+
passwordInputError: {
|
|
77514
|
+
marginTop: tokens.Spacing.XSmall
|
|
77515
|
+
},
|
|
77506
77516
|
buttonBack: {
|
|
77507
77517
|
marginTop: tokens.Spacing.Medium,
|
|
77508
77518
|
marginBottom: "12px"
|