@mxenabled/connect-widget 2.3.3 → 2.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 CHANGED
@@ -3438,6 +3438,21 @@ function executeReducerBuilderCallback(builderCallback) {
3438
3438
  actionsMap[type] = reducer;
3439
3439
  return builder;
3440
3440
  },
3441
+ addAsyncThunk(asyncThunk, reducers) {
3442
+ if (process.env.NODE_ENV !== "production") {
3443
+ if (defaultCaseReducer) {
3444
+ throw new Error(process.env.NODE_ENV === "production" ? formatProdErrorMessage(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
3445
+ }
3446
+ }
3447
+ if (reducers.pending) actionsMap[asyncThunk.pending.type] = reducers.pending;
3448
+ if (reducers.rejected) actionsMap[asyncThunk.rejected.type] = reducers.rejected;
3449
+ if (reducers.fulfilled) actionsMap[asyncThunk.fulfilled.type] = reducers.fulfilled;
3450
+ if (reducers.settled) actionMatchers.push({
3451
+ matcher: asyncThunk.settled,
3452
+ reducer: reducers.settled
3453
+ });
3454
+ return builder;
3455
+ },
3441
3456
  addMatcher(matcher, reducer) {
3442
3457
  if (process.env.NODE_ENV !== "production") {
3443
3458
  if (defaultCaseReducer) {
@@ -48930,12 +48945,12 @@ const $ = {
48930
48945
  );
48931
48946
  const C = {
48932
48947
  REACT: "react",
48933
- REACT_NATIVE: "react_native"}, k$1 = {
48948
+ REACT_NATIVE: "react_native"}, k = {
48934
48949
  LIGHT: "light"}, U = React__default.createContext(distExports.light), K = React__default.createContext(
48935
- distExports.buildTheme(k$1.LIGHT, C.REACT_NATIVE)
48950
+ distExports.buildTheme(k.LIGHT, C.REACT_NATIVE)
48936
48951
  ), Be = (e = C.REACT, o = {}) => {
48937
48952
  const n = e === C.REACT ? U : K, r = React__default.useContext(n);
48938
- return r || distExports.buildTheme(k$1.LIGHT, e, { ...o });
48953
+ return r || distExports.buildTheme(k.LIGHT, e, { ...o });
48939
48954
  }, h = {
48940
48955
  LIGHT: "light",
48941
48956
  DARK: "dark"
@@ -68373,7 +68388,7 @@ const ee = {
68373
68388
  ee
68374
68389
  ]; React__default.forwardRef(function(o, i) {
68375
68390
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Slide, { direction: "up", ref: i, ...o });
68376
- }); const k = ({
68391
+ }); const D = ({
68377
68392
  bold: e,
68378
68393
  className: o = "",
68379
68394
  children: i,
@@ -68438,8 +68453,8 @@ const ee = {
68438
68453
  children: i
68439
68454
  }
68440
68455
  );
68441
- }, G0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ jsxRuntimeExports.jsx(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), U0 = ({ className: e = "", children: o, truncate: i, ...n }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68442
- k,
68456
+ }, G0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ jsxRuntimeExports.jsx(D, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), U0 = ({ className: e = "", children: o, truncate: i, ...n }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
68457
+ D,
68443
68458
  {
68444
68459
  className: `mx-kmui-text p ${e}`,
68445
68460
  component: "p",
@@ -68466,7 +68481,7 @@ const O = {
68466
68481
  error: t = false,
68467
68482
  icon: u = false,
68468
68483
  sx: T = {},
68469
- ...D
68484
+ ...L
68470
68485
  }) => {
68471
68486
  const f = useTheme(), ie = () => f.palette.background.paper, P = () => t ? `inset 0px 0px 0px 2px ${f.palette.error.main}` : s ? i ? `inset 0px 0px 0px 2px ${f.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${f.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${f.palette.action.disabled}` : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${alpha$2(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${alpha$2(f.palette.common.black, 0.23)}` : i ? `inset 0px 0px 0px 2px ${alpha$2(f.palette.primary.main, 0.5)}` : f.shadows[1], ae = () => s || t ? f.palette.background.paper : alpha$2(f.palette.primary.main, 0.1), ne = () => s || t ? P() : o === "outlined" ? i ? `inset 0px 0px 0px 2px ${alpha$2(f.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${alpha$2(f.palette.primary.main, 0.5)}` : P(), le = () => s || t ? f.palette.background.paper : alpha$2(f.palette.primary.main, 0.3);
68472
68487
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -68486,7 +68501,7 @@ const O = {
68486
68501
  fontSize: "20px"
68487
68502
  }
68488
68503
  },
68489
- ...D
68504
+ ...L
68490
68505
  }
68491
68506
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
68492
68507
  Checkbox,
@@ -68501,7 +68516,7 @@ const O = {
68501
68516
  fontSize: "20px"
68502
68517
  }
68503
68518
  },
68504
- ...D
68519
+ ...L
68505
68520
  }
68506
68521
  ),
68507
68522
  disabled: s,
@@ -71556,6 +71571,7 @@ const defaultApiValue = {
71556
71571
  loadOAuthState: () => Promise.resolve({}),
71557
71572
  loadOAuthStates: () => Promise.resolve([]),
71558
71573
  getOAuthWindowURI: () => Promise.resolve({}),
71574
+ oAuthStart: () => Promise.resolve(),
71559
71575
  // Support
71560
71576
  createSupportTicket: () => Promise.resolve(),
71561
71577
  //Job
@@ -75494,6 +75510,7 @@ InstructionList.propTypes = {
75494
75510
  };
75495
75511
 
75496
75512
  const OAuthDefault = (props) => {
75513
+ const { api } = useApi();
75497
75514
  useAnalyticsPath(...PageviewInfo.CONNECT_OAUTH_INSTRUCTIONS, {
75498
75515
  institution_guid: props.institution.guid,
75499
75516
  institution_name: props.institution.name
@@ -75546,8 +75563,10 @@ const OAuthDefault = (props) => {
75546
75563
  sendAnalyticsEvent(AnalyticEvents.OAUTH_DEFAULT_GO_TO_INSTITUTION, {
75547
75564
  institution_guid: props.institution.guid,
75548
75565
  institution_name: props.institution.name,
75549
- member_guid: sha256Exports.sha256(props.currentMember.guid),
75550
- rawInstitution: props.institution
75566
+ member_guid: sha256Exports.sha256(props.currentMember.guid)
75567
+ });
75568
+ api?.oAuthStart({
75569
+ member: props.currentMember
75551
75570
  });
75552
75571
  props.onSignInClick();
75553
75572
  },