@mxenabled/connect-widget 2.3.3 → 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 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
- rawInstitution: props.institution
75551
+ member_guid: sha256Exports.sha256(props.currentMember.guid)
75552
+ });
75553
+ api?.oAuthStart({
75554
+ member: props.currentMember
75551
75555
  });
75552
75556
  props.onSignInClick();
75553
75557
  },