@saasquatch/mint-components 2.0.8-1 → 2.0.8-3
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/cjs/sqm-big-stat_47.cjs.entry.js +4 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +4 -2
- package/dist/esm/sqm-big-stat_47.entry.js +4 -2
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-947bacd1.system.js +1 -1
- package/dist/mint-components/{p-e96a753b.entry.js → p-d799415f.entry.js} +1 -1
- package/dist/mint-components/{p-1e7f8b73.system.entry.js → p-ea86a798.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -3368,15 +3368,17 @@ const PayoutStatusAlert = class {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
};
|
|
3370
3370
|
function useDemoPayoutStatusAlert(props) {
|
|
3371
|
-
var _a;
|
|
3371
|
+
var _a, _b;
|
|
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] }
|
|
3375
3375
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
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
|
+
console.log("the value of status is", status);
|
|
3376
3378
|
return cjs.cjs({
|
|
3377
3379
|
states: {
|
|
3378
3380
|
error: props.demoData.states.error || false,
|
|
3379
|
-
status:
|
|
3381
|
+
status: status,
|
|
3380
3382
|
loading: props.demoData.states.loading || false,
|
|
3381
3383
|
veriffLoading: props.demoData.states.veriffLoading || false,
|
|
3382
3384
|
},
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -1054,15 +1054,17 @@ export class PayoutStatusAlert {
|
|
|
1054
1054
|
}; }
|
|
1055
1055
|
}
|
|
1056
1056
|
function useDemoPayoutStatusAlert(props) {
|
|
1057
|
-
var _a;
|
|
1057
|
+
var _a, _b;
|
|
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] }
|
|
1061
1061
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
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
|
+
console.log("the value of status is", status);
|
|
1062
1064
|
return deepmerge({
|
|
1063
1065
|
states: {
|
|
1064
1066
|
error: props.demoData.states.error || false,
|
|
1065
|
-
status:
|
|
1067
|
+
status: status,
|
|
1066
1068
|
loading: props.demoData.states.loading || false,
|
|
1067
1069
|
veriffLoading: props.demoData.states.veriffLoading || false,
|
|
1068
1070
|
},
|
|
@@ -3364,15 +3364,17 @@ const PayoutStatusAlert = class {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
};
|
|
3366
3366
|
function useDemoPayoutStatusAlert(props) {
|
|
3367
|
-
var _a;
|
|
3367
|
+
var _a, _b;
|
|
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] }
|
|
3371
3371
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
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
|
+
console.log("the value of status is", status);
|
|
3372
3374
|
return cjs({
|
|
3373
3375
|
states: {
|
|
3374
3376
|
error: props.demoData.states.error || false,
|
|
3375
|
-
status:
|
|
3377
|
+
status: status,
|
|
3376
3378
|
loading: props.demoData.states.loading || false,
|
|
3377
3379
|
veriffLoading: props.demoData.states.veriffLoading || false,
|
|
3378
3380
|
},
|