@saasquatch/mint-components 2.0.0-12 → 2.0.0-14
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_46.cjs.entry.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +6 -6
- package/dist/esm/sqm-big-stat_46.entry.js +6 -6
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/{p-ca216d67.entry.js → p-e167e9fe.entry.js} +12 -12
- package/dist/mint-components/{p-16a6f4f4.system.entry.js → p-fefce687.system.entry.js} +1 -1
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -3207,14 +3207,14 @@ const PayoutStatusAlert = class {
|
|
|
3207
3207
|
}
|
|
3208
3208
|
};
|
|
3209
3209
|
function useDemoPayoutStatusAlert(props) {
|
|
3210
|
-
const
|
|
3211
|
-
const
|
|
3212
|
-
? { states
|
|
3213
|
-
: {};
|
|
3210
|
+
const states = parseStates.parseStates(props.stateController);
|
|
3211
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
3212
|
+
? { ...prev, ...states[key] }
|
|
3213
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
3214
3214
|
const base = {
|
|
3215
3215
|
states: {
|
|
3216
3216
|
error: false,
|
|
3217
|
-
status: "INFORMATION_REQUIRED",
|
|
3217
|
+
status: states.status || "INFORMATION_REQUIRED",
|
|
3218
3218
|
loading: false,
|
|
3219
3219
|
veriffLoading: false,
|
|
3220
3220
|
},
|
|
@@ -3228,7 +3228,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
3228
3228
|
return cjs.cjs.all([
|
|
3229
3229
|
base,
|
|
3230
3230
|
props.demoData || {},
|
|
3231
|
-
|
|
3231
|
+
formatted,
|
|
3232
3232
|
], { arrayMerge: (_, a) => a });
|
|
3233
3233
|
}
|
|
3234
3234
|
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -704,14 +704,14 @@ export class PayoutStatusAlert {
|
|
|
704
704
|
}; }
|
|
705
705
|
}
|
|
706
706
|
function useDemoPayoutStatusAlert(props) {
|
|
707
|
-
const
|
|
708
|
-
const
|
|
709
|
-
? { states
|
|
710
|
-
: {};
|
|
707
|
+
const states = parseStates(props.stateController);
|
|
708
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
709
|
+
? { ...prev, ...states[key] }
|
|
710
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
711
711
|
const base = {
|
|
712
712
|
states: {
|
|
713
713
|
error: false,
|
|
714
|
-
status: "INFORMATION_REQUIRED",
|
|
714
|
+
status: states.status || "INFORMATION_REQUIRED",
|
|
715
715
|
loading: false,
|
|
716
716
|
veriffLoading: false,
|
|
717
717
|
},
|
|
@@ -725,6 +725,6 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
725
725
|
return deepmerge.all([
|
|
726
726
|
base,
|
|
727
727
|
props.demoData || {},
|
|
728
|
-
|
|
728
|
+
formatted,
|
|
729
729
|
], { arrayMerge: (_, a) => a });
|
|
730
730
|
}
|
|
@@ -3203,14 +3203,14 @@ const PayoutStatusAlert = class {
|
|
|
3203
3203
|
}
|
|
3204
3204
|
};
|
|
3205
3205
|
function useDemoPayoutStatusAlert(props) {
|
|
3206
|
-
const
|
|
3207
|
-
const
|
|
3208
|
-
? { states
|
|
3209
|
-
: {};
|
|
3206
|
+
const states = parseStates(props.stateController);
|
|
3207
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
3208
|
+
? { ...prev, ...states[key] }
|
|
3209
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
3210
3210
|
const base = {
|
|
3211
3211
|
states: {
|
|
3212
3212
|
error: false,
|
|
3213
|
-
status: "INFORMATION_REQUIRED",
|
|
3213
|
+
status: states.status || "INFORMATION_REQUIRED",
|
|
3214
3214
|
loading: false,
|
|
3215
3215
|
veriffLoading: false,
|
|
3216
3216
|
},
|
|
@@ -3224,7 +3224,7 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
3224
3224
|
return cjs.all([
|
|
3225
3225
|
base,
|
|
3226
3226
|
props.demoData || {},
|
|
3227
|
-
|
|
3227
|
+
formatted,
|
|
3228
3228
|
], { arrayMerge: (_, a) => a });
|
|
3229
3229
|
}
|
|
3230
3230
|
|