@saasquatch/mint-components 2.4.7-1 → 2.4.7-2
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-big-stat_47.cjs.entry.js +6 -0
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +3 -2
- package/dist/cjs/{sqm-partner-info-modal-view-a352d3ae.js → sqm-partner-info-modal-view-9a4a74b5.js} +3 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +4 -4
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +3 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +3 -5
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +3 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +33 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_47.entry.js +6 -0
- package/dist/esm/sqm-email-verification_2.entry.js +3 -2
- package/dist/esm/{sqm-partner-info-modal-view-506d7d50.js → sqm-partner-info-modal-view-04db5df0.js} +3 -5
- package/dist/esm/sqm-stencilbook.entry.js +4 -4
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-04db5df0.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-c9f5def4.entry.js → p-00649428.entry.js} +5 -5
- package/dist/mint-components/{p-a492f5de.system.entry.js → p-1081b4fa.system.entry.js} +1 -1
- package/dist/mint-components/p-7cfce5dd.system.js +1 -0
- package/dist/mint-components/{p-c4c65992.system.entry.js → p-81c0f5f8.system.entry.js} +1 -1
- package/dist/mint-components/p-8ba31535.js +1 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-eae73594.entry.js → p-c4ef1d04.entry.js} +1 -1
- package/dist/mint-components/{p-ca6c2c4c.system.entry.js → p-dc3634cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc320bac.entry.js → p-fa0b5db3.entry.js} +2 -2
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -0
- package/dist/types/components.d.ts +12 -0
- 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/esm-es5/sqm-partner-info-modal-view-506d7d50.js +0 -1
- package/dist/mint-components/p-e359de22.system.js +0 -1
- package/dist/mint-components/p-ef3ffaa9.js +0 -1
|
@@ -34,7 +34,7 @@ const defaultText = {
|
|
|
34
34
|
modalHeader: "Let's get you ready for rewards",
|
|
35
35
|
modalHeaderExistingPartner: "We found an existing account",
|
|
36
36
|
descriptionNewPartner: "Confirm your country and currency now to get your future rewards faster.",
|
|
37
|
-
descriptionExistingPartner: "We
|
|
37
|
+
descriptionExistingPartner: "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.",
|
|
38
38
|
supportDescriptionExistingPartner: "If this is a mistake, please contact Support or sign up for this referral program with a different email.",
|
|
39
39
|
supportLink: "Support",
|
|
40
40
|
countryLabel: "Country",
|
|
@@ -47,8 +47,8 @@ const defaultText = {
|
|
|
47
47
|
allowBankingCollection: "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",
|
|
48
48
|
termsAndConditionsLabel: "terms and conditions",
|
|
49
49
|
termsAndConditionsLink: "https://terms.advocate.impact.com/PayoutTermsAndConditions.html",
|
|
50
|
-
emailVerificationErrorText: "
|
|
51
|
-
loginLinkText: "
|
|
50
|
+
emailVerificationErrorText: "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.",
|
|
51
|
+
loginLinkText: "impact.com",
|
|
52
52
|
};
|
|
53
53
|
const defaultProps = {
|
|
54
54
|
states: {
|
|
@@ -85,9 +85,7 @@ export function PartnerInfoModalContentView(props) {
|
|
|
85
85
|
id: "emailVerificationErrorText",
|
|
86
86
|
defaultMessage: text.emailVerificationErrorText,
|
|
87
87
|
}, {
|
|
88
|
-
loginLinkText: (h("a", {
|
|
89
|
-
//AL: TODO
|
|
90
|
-
target: "_blank", href: `https://app.impact.com/login.user` }, text.loginLinkText)),
|
|
88
|
+
loginLinkText: (h("a", { target: "_blank", href: `https://app.impact.com/login.user` }, text.loginLinkText)),
|
|
91
89
|
});
|
|
92
90
|
const supportMessage = intl.formatMessage({
|
|
93
91
|
id: "supportDescriptionExistingPartner",
|
|
@@ -95,7 +93,7 @@ export function PartnerInfoModalContentView(props) {
|
|
|
95
93
|
}, {
|
|
96
94
|
supportLink: (h("a", { target: "_blank", href: `mailto:advocate-payment-support@impact.com` }, text.supportLink)),
|
|
97
95
|
});
|
|
98
|
-
const description = states.isExistingPartner ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
96
|
+
const description = states.isExistingPartner || !states.emailCanBeUsed ? (h("span", { class: sheet.classes.DescriptionContainer },
|
|
99
97
|
h("p", null, text.descriptionExistingPartner),
|
|
100
98
|
h("p", null, supportMessage))) : (h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
101
99
|
const buttonLabel = states.isExistingPartner
|
|
@@ -152,7 +150,7 @@ export function PartnerInfoModalView(props) {
|
|
|
152
150
|
const styleString = sheet.toString();
|
|
153
151
|
if (!states.open)
|
|
154
152
|
return h("div", null);
|
|
155
|
-
const modalHeader = states.isExistingPartner
|
|
153
|
+
const modalHeader = states.isExistingPartner || !states.emailCanBeUsed
|
|
156
154
|
? text.modalHeaderExistingPartner
|
|
157
155
|
: text.modalHeader;
|
|
158
156
|
return (h("div", null,
|
|
@@ -105,7 +105,7 @@ export class PartnerInfoModal {
|
|
|
105
105
|
* @uiName Email verification error text
|
|
106
106
|
* @uiWidget textArea
|
|
107
107
|
*/
|
|
108
|
-
this.emailVerificationErrorText = "
|
|
108
|
+
this.emailVerificationErrorText = "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.";
|
|
109
109
|
/**
|
|
110
110
|
* @uiName login link text
|
|
111
111
|
*/
|
|
@@ -524,7 +524,7 @@ export class PartnerInfoModal {
|
|
|
524
524
|
},
|
|
525
525
|
"attribute": "email-verification-error-text",
|
|
526
526
|
"reflect": false,
|
|
527
|
-
"defaultValue": "\"
|
|
527
|
+
"defaultValue": "\"Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.\""
|
|
528
528
|
},
|
|
529
529
|
"loginLinkText": {
|
|
530
530
|
"type": "string",
|
|
@@ -675,6 +675,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
675
675
|
filteredCountries: [],
|
|
676
676
|
filteredCurrencies: [],
|
|
677
677
|
allowBankingCollection,
|
|
678
|
+
emailCanBeUsed: true,
|
|
678
679
|
disabled: false,
|
|
679
680
|
},
|
|
680
681
|
callbacks: {
|
|
@@ -202,6 +202,12 @@ export class WidgetVerification {
|
|
|
202
202
|
* @uiWidget textArea
|
|
203
203
|
*/
|
|
204
204
|
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
205
|
+
/**
|
|
206
|
+
* @uiName Email verification error text
|
|
207
|
+
* @uiGroup Partner Creation Step
|
|
208
|
+
* @uiWidget textArea
|
|
209
|
+
*/
|
|
210
|
+
this.createPartnerStep_emailVerificationErrorText = "Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.";
|
|
205
211
|
/**
|
|
206
212
|
* @uiName Missing fields error text
|
|
207
213
|
* @uiGroup Partner Creation Step
|
|
@@ -929,6 +935,33 @@ export class WidgetVerification {
|
|
|
929
935
|
"reflect": false,
|
|
930
936
|
"defaultValue": "\"An error occurred. Please try again.\""
|
|
931
937
|
},
|
|
938
|
+
"createPartnerStep_emailVerificationErrorText": {
|
|
939
|
+
"type": "string",
|
|
940
|
+
"mutable": false,
|
|
941
|
+
"complexType": {
|
|
942
|
+
"original": "string",
|
|
943
|
+
"resolved": "string",
|
|
944
|
+
"references": {}
|
|
945
|
+
},
|
|
946
|
+
"required": false,
|
|
947
|
+
"optional": false,
|
|
948
|
+
"docs": {
|
|
949
|
+
"tags": [{
|
|
950
|
+
"text": "Email verification error text",
|
|
951
|
+
"name": "uiName"
|
|
952
|
+
}, {
|
|
953
|
+
"text": "Partner Creation Step",
|
|
954
|
+
"name": "uiGroup"
|
|
955
|
+
}, {
|
|
956
|
+
"text": "textArea",
|
|
957
|
+
"name": "uiWidget"
|
|
958
|
+
}],
|
|
959
|
+
"text": ""
|
|
960
|
+
},
|
|
961
|
+
"attribute": "create-partner-step_email-verification-error-text",
|
|
962
|
+
"reflect": false,
|
|
963
|
+
"defaultValue": "\"Please log in to {loginLinkText} to review your account status. You may need to complete email verification or other pending steps. Once resolved, refresh this page to proceed.\""
|
|
964
|
+
},
|
|
932
965
|
"createPartnerStep_missingFieldsErrorText": {
|
|
933
966
|
"type": "string",
|
|
934
967
|
"mutable": false,
|