@saasquatch/mint-components 2.0.8-4 → 2.0.8-6

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.
@@ -3368,7 +3368,7 @@ const PayoutStatusAlert = class {
3368
3368
  }
3369
3369
  };
3370
3370
  function useDemoPayoutStatusAlert(props) {
3371
- var _a, _b;
3371
+ var _a, _b, _c, _d;
3372
3372
  const states = extractProps.parseStates(props.stateController);
3373
3373
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3374
3374
  ? { ...prev, ...states[key] }
@@ -3376,12 +3376,20 @@ function useDemoPayoutStatusAlert(props) {
3376
3376
  const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
3377
3377
  console.log("the value of the status variable is", status);
3378
3378
  console.log("the value of states.status is ", states.status);
3379
+ console.log("the value of states is ", states);
3380
+ console.log("the value of formatted states is ", formatted);
3379
3381
  return cjs.cjs({
3382
+ // states: {
3383
+ // error: props.demoData.states.error || false,
3384
+ // status: states.status,
3385
+ // loading: props.demoData.states.loading || false,
3386
+ // veriffLoading: props.demoData.states.veriffLoading || false,
3387
+ // },
3380
3388
  states: {
3381
- error: props.demoData.states.error || false,
3389
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3382
3390
  status: states.status,
3383
- loading: props.demoData.states.loading || false,
3384
- veriffLoading: props.demoData.states.veriffLoading || false,
3391
+ loading: props.demoData.states.loading,
3392
+ veriffLoading: props.demoData.states.veriffLoading,
3385
3393
  },
3386
3394
  data: { type: "SquatchAdmin" },
3387
3395
  text: props.getTextProps(),
@@ -1054,7 +1054,7 @@ export class PayoutStatusAlert {
1054
1054
  }; }
1055
1055
  }
1056
1056
  function useDemoPayoutStatusAlert(props) {
1057
- var _a, _b;
1057
+ var _a, _b, _c, _d;
1058
1058
  const states = parseStates(props.stateController);
1059
1059
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
1060
1060
  ? { ...prev, ...states[key] }
@@ -1062,12 +1062,20 @@ function useDemoPayoutStatusAlert(props) {
1062
1062
  const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
1063
1063
  console.log("the value of the status variable is", status);
1064
1064
  console.log("the value of states.status is ", states.status);
1065
+ console.log("the value of states is ", states);
1066
+ console.log("the value of formatted states is ", formatted);
1065
1067
  return deepmerge({
1068
+ // states: {
1069
+ // error: props.demoData.states.error || false,
1070
+ // status: states.status,
1071
+ // loading: props.demoData.states.loading || false,
1072
+ // veriffLoading: props.demoData.states.veriffLoading || false,
1073
+ // },
1066
1074
  states: {
1067
- error: props.demoData.states.error || false,
1075
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
1068
1076
  status: states.status,
1069
- loading: props.demoData.states.loading || false,
1070
- veriffLoading: props.demoData.states.veriffLoading || false,
1077
+ loading: props.demoData.states.loading,
1078
+ veriffLoading: props.demoData.states.veriffLoading,
1071
1079
  },
1072
1080
  data: { type: "SquatchAdmin" },
1073
1081
  text: props.getTextProps(),
@@ -3364,7 +3364,7 @@ const PayoutStatusAlert = class {
3364
3364
  }
3365
3365
  };
3366
3366
  function useDemoPayoutStatusAlert(props) {
3367
- var _a, _b;
3367
+ var _a, _b, _c, _d;
3368
3368
  const states = parseStates(props.stateController);
3369
3369
  const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
3370
3370
  ? { ...prev, ...states[key] }
@@ -3372,12 +3372,20 @@ function useDemoPayoutStatusAlert(props) {
3372
3372
  const status = states.status ? states.status : (_b = (_a = props.demoData) === null || _a === void 0 ? void 0 : _a.states) === null || _b === void 0 ? void 0 : _b.status;
3373
3373
  console.log("the value of the status variable is", status);
3374
3374
  console.log("the value of states.status is ", states.status);
3375
+ console.log("the value of states is ", states);
3376
+ console.log("the value of formatted states is ", formatted);
3375
3377
  return cjs({
3378
+ // states: {
3379
+ // error: props.demoData.states.error || false,
3380
+ // status: states.status,
3381
+ // loading: props.demoData.states.loading || false,
3382
+ // veriffLoading: props.demoData.states.veriffLoading || false,
3383
+ // },
3376
3384
  states: {
3377
- error: props.demoData.states.error || false,
3385
+ error: (_d = (_c = props.demoData) === null || _c === void 0 ? void 0 : _c.states) === null || _d === void 0 ? void 0 : _d.error,
3378
3386
  status: states.status,
3379
- loading: props.demoData.states.loading || false,
3380
- veriffLoading: props.demoData.states.veriffLoading || false,
3387
+ loading: props.demoData.states.loading,
3388
+ veriffLoading: props.demoData.states.veriffLoading,
3381
3389
  },
3382
3390
  data: { type: "SquatchAdmin" },
3383
3391
  text: props.getTextProps(),