@saasquatch/mint-components 2.0.0-5 → 2.0.0-50
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +6 -3
- package/dist/cjs/sqm-big-stat_46.cjs.entry.js +15 -36
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +4 -3
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-hero/sqm-hero.js +4 -4
- package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +1 -34
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +1 -1
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +4 -3
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +48 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +3 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +3 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +6 -3
- package/dist/esm/sqm-big-stat_46.entry.js +15 -36
- package/dist/esm/sqm-stencilbook.entry.js +4 -3
- package/dist/esm/sqm-tax-and-cash.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-46b88149.entry.js → p-38263521.entry.js} +12 -12
- package/dist/mint-components/{p-3c09c632.system.entry.js → p-3ea29bac.system.entry.js} +1 -1
- package/dist/mint-components/{p-402984b3.system.entry.js → p-43a9fb8e.system.entry.js} +1 -1
- package/dist/mint-components/{p-5853132a.system.entry.js → p-69d8b4f2.system.entry.js} +1 -1
- package/dist/mint-components/{p-a44a912b.entry.js → p-75c569f7.entry.js} +1 -1
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-af4ce9f9.system.entry.js +1 -0
- package/dist/mint-components/p-dddc6446.entry.js +99 -0
- package/dist/mint-components/{p-f5c49a83.entry.js → p-e110688b.entry.js} +1 -1
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +4 -4
- package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +8 -0
- package/dist/types/components.d.ts +24 -8
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-13e66b37.system.entry.js +0 -1
- package/dist/mint-components/p-a0730259.entry.js +0 -99
|
@@ -122,13 +122,13 @@ export class Hero {
|
|
|
122
122
|
"optional": true,
|
|
123
123
|
"docs": {
|
|
124
124
|
"tags": [{
|
|
125
|
-
"text": "
|
|
125
|
+
"text": "Splash image",
|
|
126
126
|
"name": "uiName"
|
|
127
127
|
}, {
|
|
128
128
|
"text": "Background",
|
|
129
129
|
"name": "uiWidget"
|
|
130
130
|
}],
|
|
131
|
-
"text": "
|
|
131
|
+
"text": "Splash image or background color (for use in the left column)"
|
|
132
132
|
},
|
|
133
133
|
"attribute": "background",
|
|
134
134
|
"reflect": false
|
|
@@ -172,13 +172,13 @@ export class Hero {
|
|
|
172
172
|
"optional": true,
|
|
173
173
|
"docs": {
|
|
174
174
|
"tags": [{
|
|
175
|
-
"text": "
|
|
175
|
+
"text": "Content background",
|
|
176
176
|
"name": "uiName"
|
|
177
177
|
}, {
|
|
178
178
|
"text": "Background",
|
|
179
179
|
"name": "uiWidget"
|
|
180
180
|
}],
|
|
181
|
-
"text": "
|
|
181
|
+
"text": "Content background color or image (for use in the right column)"
|
|
182
182
|
},
|
|
183
183
|
"attribute": "secondary-background",
|
|
184
184
|
"reflect": false
|
|
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalFooterView } from "./sqm-portal-footer-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Footer
|
|
7
|
-
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame"]
|
|
7
|
+
* @validParents ["div","sqm-brand","sqm-portal-container", "sqm-divided-layout", "sqm-referral-card", "sqm-instant-access-registration", "sqm-portal-frame", "sqm-referred-registration"]
|
|
8
8
|
*/
|
|
9
9
|
export class PortalFooter {
|
|
10
10
|
constructor() {
|
|
@@ -793,39 +793,6 @@ function useRewardExchangeListDemo(props) {
|
|
|
793
793
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
|
|
794
794
|
? { ...prev, ...states[key] }
|
|
795
795
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
796
|
-
const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } },
|
|
797
|
-
// {
|
|
798
|
-
// states: {
|
|
799
|
-
// content: {
|
|
800
|
-
// text: props,
|
|
801
|
-
// },
|
|
802
|
-
// redeemStage: "chooseReward",
|
|
803
|
-
// amount: 0,
|
|
804
|
-
// selectedStep: undefined,
|
|
805
|
-
// selectedItem: undefined,
|
|
806
|
-
// open: false,
|
|
807
|
-
// exchangeError: false,
|
|
808
|
-
// queryError: false,
|
|
809
|
-
// loading: false,
|
|
810
|
-
// noExchangeOptions: false,
|
|
811
|
-
// // empty: EmptySlot(),
|
|
812
|
-
// },
|
|
813
|
-
// data: {
|
|
814
|
-
// // shareCode: "SHARECODE123",
|
|
815
|
-
// exchangeList: demoRewardExchange.data.exchangeList,
|
|
816
|
-
// },
|
|
817
|
-
// callbacks: {
|
|
818
|
-
// exchangeReward: () => {},
|
|
819
|
-
// setExchangeState: (_: ExchangeState) => {},
|
|
820
|
-
// setStage: (_: Stages) => {},
|
|
821
|
-
// resetState: () => {},
|
|
822
|
-
// copyFuelTankCode: () => {},
|
|
823
|
-
// },
|
|
824
|
-
// refs: {
|
|
825
|
-
// canvasRef: {},
|
|
826
|
-
// },
|
|
827
|
-
// },
|
|
828
|
-
props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
|
|
829
|
-
console.log({ finalProps });
|
|
796
|
+
const finalProps = deepmerge({ ...demoRewardExchange, content: { text: props } }, props.demoData || formatted || {}, { arrayMerge: (_, a) => a });
|
|
830
797
|
return finalProps;
|
|
831
798
|
}
|
|
@@ -4,7 +4,7 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { PortalSectionView } from "./sqm-portal-section-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Titled Section
|
|
7
|
-
* @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card"]
|
|
7
|
+
* @validParents ["sqm-portal-container","div","sqm-divided-layout","template","sqm-hero","sqm-tab", "sqm-referred-registration", "sqb-program-section","sqb-conditional-section", "sqm-instant-access-registration", "sqm-referral-card", "sqm-referred-registration"]
|
|
8
8
|
* @validChildren ["div","sqm-portal-container","p","sqm-timeline","h1","h2","h3","h5","h4","sqm-qr-code","sqm-referral-code","sqm-referral-codes","sqm-share-code","sqm-share-link","sqm-text","span", "sqm-user-name"]
|
|
9
9
|
* @slots [{"name":"label", "title":"Label"},{"name":"content", "title":"Content"}]
|
|
10
10
|
* @exampleGroup Layout
|
|
@@ -1125,9 +1125,10 @@ export const TaxAndCashDashboardW9ThresholdReached = () => {
|
|
|
1125
1125
|
documentTypeString: taxTypeToName("W9"),
|
|
1126
1126
|
dateSubmitted: "Jan 18th, 2025",
|
|
1127
1127
|
noFormNeeded: false,
|
|
1128
|
-
notRegistered:
|
|
1128
|
+
notRegistered: false,
|
|
1129
1129
|
showNewFormDialog: false,
|
|
1130
1130
|
hasHold: false,
|
|
1131
|
+
enforceUsTaxComplianceOption: "CASH_ONLY_DEFER_W9",
|
|
1131
1132
|
},
|
|
1132
1133
|
} }));
|
|
1133
1134
|
};
|
|
@@ -1153,7 +1154,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
|
|
|
1153
1154
|
return (h("sqm-tax-and-cash-dashboard", { demoData: {
|
|
1154
1155
|
...dashboardProps,
|
|
1155
1156
|
states: {
|
|
1156
|
-
payoutStatus: "
|
|
1157
|
+
payoutStatus: "HOLD",
|
|
1157
1158
|
veriffLoading: false,
|
|
1158
1159
|
canEditPayoutInfo: true,
|
|
1159
1160
|
disabled: true,
|
|
@@ -1165,7 +1166,7 @@ export const TaxAndCashDashboardPayoutsOnHold = () => {
|
|
|
1165
1166
|
indirectTaxNumber: "123456",
|
|
1166
1167
|
country: "Slovania",
|
|
1167
1168
|
showNewFormDialog: false,
|
|
1168
|
-
hasHold:
|
|
1169
|
+
hasHold: false,
|
|
1169
1170
|
},
|
|
1170
1171
|
} }));
|
|
1171
1172
|
};
|
package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js
CHANGED
|
@@ -5,6 +5,7 @@ import deepmerge from "deepmerge";
|
|
|
5
5
|
import { getProps } from "../../../utils/utils";
|
|
6
6
|
import { PayoutStatusAlertView, } from "./sqm-payout-status-alert-view";
|
|
7
7
|
import { usePayoutStatus } from "./usePayoutStatus";
|
|
8
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
8
9
|
/**
|
|
9
10
|
* @uiName Payout Status Alert
|
|
10
11
|
* @validParents ["sqm-portal-container","div","sqm-hero","sqm-instant-access-registration","sqm-brand","sqb-program-section","sqb-conditional-section"]
|
|
@@ -109,6 +110,14 @@ export class PayoutStatusAlert {
|
|
|
109
110
|
* @uiName Error description
|
|
110
111
|
*/
|
|
111
112
|
this.errorDescription = "There was an error with determining your payout status.";
|
|
113
|
+
/**
|
|
114
|
+
* @undocumented
|
|
115
|
+
* @componentState { "title": "Payout Info Required", "props": { "states": { "status": "INFORMATION_REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
116
|
+
* @componentState { "title": "Verification Required", "props": { "states": { "status": "VERIFICATION:REQUIRED" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
117
|
+
* @componentState { "title": "Identity Verification", "props": { "states": { "status": "VERIFICATION:REVIEW" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
118
|
+
* @componentState { "title": "Account Hold", "props": { "states": { "status": "HOLD" } }, "dependencies": ["sqm-payout-status-alert"] }
|
|
119
|
+
*/
|
|
120
|
+
this.stateController = "{}";
|
|
112
121
|
withHooks(this);
|
|
113
122
|
}
|
|
114
123
|
disconnectedCallback() { }
|
|
@@ -628,6 +637,39 @@ export class PayoutStatusAlert {
|
|
|
628
637
|
"reflect": false,
|
|
629
638
|
"defaultValue": "\"There was an error with determining your payout status.\""
|
|
630
639
|
},
|
|
640
|
+
"stateController": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"mutable": false,
|
|
643
|
+
"complexType": {
|
|
644
|
+
"original": "string",
|
|
645
|
+
"resolved": "string",
|
|
646
|
+
"references": {}
|
|
647
|
+
},
|
|
648
|
+
"required": false,
|
|
649
|
+
"optional": true,
|
|
650
|
+
"docs": {
|
|
651
|
+
"tags": [{
|
|
652
|
+
"text": undefined,
|
|
653
|
+
"name": "undocumented"
|
|
654
|
+
}, {
|
|
655
|
+
"text": "{ \"title\": \"Payout Info Required\", \"props\": { \"states\": { \"status\": \"INFORMATION_REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
|
|
656
|
+
"name": "componentState"
|
|
657
|
+
}, {
|
|
658
|
+
"text": "{ \"title\": \"Verification Required\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REQUIRED\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
|
|
659
|
+
"name": "componentState"
|
|
660
|
+
}, {
|
|
661
|
+
"text": "{ \"title\": \"Identity Verification\", \"props\": { \"states\": { \"status\": \"VERIFICATION:REVIEW\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
|
|
662
|
+
"name": "componentState"
|
|
663
|
+
}, {
|
|
664
|
+
"text": "{ \"title\": \"Account Hold\", \"props\": { \"states\": { \"status\": \"HOLD\" } }, \"dependencies\": [\"sqm-payout-status-alert\"] }",
|
|
665
|
+
"name": "componentState"
|
|
666
|
+
}],
|
|
667
|
+
"text": ""
|
|
668
|
+
},
|
|
669
|
+
"attribute": "state-controller",
|
|
670
|
+
"reflect": false,
|
|
671
|
+
"defaultValue": "\"{}\""
|
|
672
|
+
},
|
|
631
673
|
"demoData": {
|
|
632
674
|
"type": "unknown",
|
|
633
675
|
"mutable": false,
|
|
@@ -661,12 +703,16 @@ export class PayoutStatusAlert {
|
|
|
661
703
|
}; }
|
|
662
704
|
}
|
|
663
705
|
function useDemoPayoutStatusAlert(props) {
|
|
706
|
+
const states = parseStates(props.stateController);
|
|
707
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
708
|
+
? { ...prev, ...states[key] }
|
|
709
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
664
710
|
return deepmerge({
|
|
665
711
|
states: {
|
|
666
712
|
error: false,
|
|
667
713
|
status: "INFORMATION_REQUIRED",
|
|
668
714
|
loading: false,
|
|
669
|
-
|
|
715
|
+
veriffLoading: false,
|
|
670
716
|
},
|
|
671
717
|
data: { type: "SquatchAdmin" },
|
|
672
718
|
text: props.getTextProps(),
|
|
@@ -674,5 +720,5 @@ function useDemoPayoutStatusAlert(props) {
|
|
|
674
720
|
onTermsClick: () => { },
|
|
675
721
|
onClick: () => console.log("show"),
|
|
676
722
|
},
|
|
677
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
723
|
+
}, formatted || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
678
724
|
}
|
|
@@ -1125,7 +1125,7 @@ export class TaxAndCashMonolith {
|
|
|
1125
1125
|
case "/4":
|
|
1126
1126
|
return (h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
1127
1127
|
case "/dashboard":
|
|
1128
|
-
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
1128
|
+
return (h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"), { stateController: props["sqm-tax-and-cash-dashboard_stateController"] || "{}" })));
|
|
1129
1129
|
case "/error":
|
|
1130
1130
|
return (h(ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: intl.formatMessage({
|
|
1131
1131
|
id: "loadingErrorAlertDescription",
|
|
@@ -436,7 +436,9 @@ export const TaxAndCashDashboardView = (props) => {
|
|
|
436
436
|
h("div", { class: sheet.classes.BankingInformationContainer },
|
|
437
437
|
slots.payoutDetailsCardSlot,
|
|
438
438
|
!states.loading && (h("p", { class: sheet.classes.DescriptionText }, text.payoutFromImpact)),
|
|
439
|
-
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "
|
|
439
|
+
states.canEditPayoutInfo && (h("sl-button", { disabled: states.disabled || states.loading, type: "secondary", exportparts: "base: secondarybutton-base",
|
|
440
|
+
// class={sheet.classes.EditBankDetailsButton}
|
|
441
|
+
onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
440
442
|
(!states.noFormNeeded || states.status === "NOT_VERIFIED") && (h("div", { class: sheet.classes.TaxDocumentsContainer },
|
|
441
443
|
h("div", null, states.loading ? (h("div", { class: sheet.classes.TaxSectionSkeletonContainer },
|
|
442
444
|
h("sl-skeleton", { class: sheet.classes.SkeletonOne }),
|
|
@@ -2,6 +2,7 @@ import { isDemo } from "@saasquatch/component-boilerplate";
|
|
|
2
2
|
import { withHooks } from "@saasquatch/stencil-hooks";
|
|
3
3
|
import { Component, h, Host, Prop } from "@stencil/core";
|
|
4
4
|
import deepmerge from "deepmerge";
|
|
5
|
+
import { parseStates } from "../../../utils/parseStates";
|
|
5
6
|
import { getProps } from "../../../utils/utils";
|
|
6
7
|
import { TaxAndCashDashboardView } from "./sqm-tax-and-cash-dashboard-view";
|
|
7
8
|
import { useTaxAndCashDashboard, } from "./useTaxAndCashDashboard";
|
|
@@ -1900,7 +1901,7 @@ export class TaxAndCashDashboard {
|
|
|
1900
1901
|
}; }
|
|
1901
1902
|
}
|
|
1902
1903
|
function useDemoTaxAndCashDashboard(props) {
|
|
1903
|
-
|
|
1904
|
+
const stateController = parseStates(props.stateController);
|
|
1904
1905
|
// @ts-ignore
|
|
1905
1906
|
return deepmerge({
|
|
1906
1907
|
states: {
|
|
@@ -1942,5 +1943,5 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
1942
1943
|
},
|
|
1943
1944
|
} })),
|
|
1944
1945
|
},
|
|
1945
|
-
},
|
|
1946
|
+
}, stateController || props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1946
1947
|
}
|