@saasquatch/mint-components 2.4.5 → 2.4.7-1
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/{ShadowViewAddon-331ac9e4.js → ShadowViewAddon-ed5d27ef.js} +11 -2
- 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 +1 -1
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +17 -4
- package/dist/cjs/{sqm-partner-info-modal-view-d9b61d54.js → sqm-partner-info-modal-view-a352d3ae.js} +19 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -3
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +15 -0
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +19 -4
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +57 -1
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +5 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +8 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +11 -2
- package/dist/esm/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.js} +11 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-big-stat_47.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +17 -4
- package/dist/esm/{sqm-partner-info-modal-view-b921fed1.js → sqm-partner-info-modal-view-506d7d50.js} +19 -4
- package/dist/esm/sqm-stencilbook.entry.js +28 -3
- package/dist/esm-es5/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.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-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-506d7d50.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-3d2fe16b.js → p-221d044f.js} +4 -4
- package/dist/mint-components/{p-87f119f0.system.js → p-4148d8d7.system.js} +1 -1
- package/dist/mint-components/p-a492f5de.system.entry.js +1 -0
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-cf12347b.system.entry.js → p-c4c65992.system.entry.js} +1 -1
- package/dist/mint-components/{p-654cdee8.entry.js → p-c9f5def4.entry.js} +5 -3
- package/dist/mint-components/{p-231926a3.system.entry.js → p-ca6c2c4c.system.entry.js} +1 -1
- package/dist/mint-components/{p-1e9c339f.entry.js → p-cc320bac.entry.js} +2 -2
- package/dist/mint-components/p-e359de22.system.js +1 -0
- package/dist/mint-components/{p-0d89ef44.entry.js → p-eae73594.entry.js} +1 -1
- package/dist/mint-components/p-ef3ffaa9.js +1 -0
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +3 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +9 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
- package/dist/types/components.d.ts +18 -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-b921fed1.js +0 -1
- package/dist/mint-components/p-288249ae.system.entry.js +0 -1
- package/dist/mint-components/p-db73312a.system.js +0 -1
- package/dist/mint-components/p-f75ead20.js +0 -1
package/dist/esm/{sqm-partner-info-modal-view-b921fed1.js → sqm-partner-info-modal-view-506d7d50.js}
RENAMED
|
@@ -82,6 +82,14 @@ function PartnerInfoModalContentView(props) {
|
|
|
82
82
|
const { states, callbacks, text } = props;
|
|
83
83
|
const sheet = createStyleSheet(style);
|
|
84
84
|
const styleString = sheet.toString();
|
|
85
|
+
const emailVerificationMessage = intl.formatMessage({
|
|
86
|
+
id: "emailVerificationErrorText",
|
|
87
|
+
defaultMessage: text.emailVerificationErrorText,
|
|
88
|
+
}, {
|
|
89
|
+
loginLinkText: (h("a", {
|
|
90
|
+
//AL: TODO
|
|
91
|
+
target: "_blank", href: `https://app.impact.com/login.user` }, text.loginLinkText)),
|
|
92
|
+
});
|
|
85
93
|
const supportMessage = intl.formatMessage({
|
|
86
94
|
id: "supportDescriptionExistingPartner",
|
|
87
95
|
defaultMessage: text.supportDescriptionExistingPartner,
|
|
@@ -105,27 +113,34 @@ function PartnerInfoModalContentView(props) {
|
|
|
105
113
|
h("div", { class: sheet.classes.FormFields },
|
|
106
114
|
description,
|
|
107
115
|
states.shouldDisplayNameFields && (h(Fragment, null,
|
|
108
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "First Name", value: states.firstName, "onSl-input": callbacks.onFirstNameChange, disabled: states.submitting, required: true }),
|
|
109
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "Last Name", value: states.lastName, "onSl-input": callbacks.onLastNameChange, disabled: states.submitting, required: true }))),
|
|
116
|
+
h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "First Name", value: states.firstName, "onSl-input": callbacks.onFirstNameChange, disabled: states.submitting || !states.emailCanBeUsed, required: true }),
|
|
117
|
+
h("sl-input", { exportparts: "label: input-label, base: input-base", class: sheet.classes.NameInput, label: "Last Name", value: states.lastName, "onSl-input": callbacks.onLastNameChange, disabled: states.submitting || !states.emailCanBeUsed, required: true }))),
|
|
110
118
|
h("sl-select", { exportparts: "label: input-label, base: input-base, menu: select-menu", label: text.countryLabel, value: states.countryCode, disabled: states.submitting ||
|
|
119
|
+
!states.emailCanBeUsed ||
|
|
111
120
|
(!!states.countryCode && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
112
121
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
113
122
|
var _a;
|
|
114
123
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
115
124
|
} }),
|
|
116
125
|
h("div", { class: sheet.classes.SelectMenu }, (_a = states.filteredCountries) === null || _a === void 0 ? void 0 : _a.map((c) => (h("sl-menu-item", { value: c.countryCode }, c.displayName))))),
|
|
117
|
-
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
126
|
+
h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting ||
|
|
127
|
+
!states.emailCanBeUsed ||
|
|
128
|
+
(!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
118
129
|
h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }),
|
|
119
130
|
h("div", { class: sheet.classes.SelectMenu }, (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 : _b.map((c) => (h("sl-menu-item", { value: c.currencyCode },
|
|
120
131
|
c.currencyCode,
|
|
121
132
|
" - ",
|
|
122
133
|
c.displayName))))),
|
|
123
134
|
h("div", { class: sheet.classes.CheckboxWrapper },
|
|
124
|
-
h("sl-checkbox", { class: sheet.classes.Checkbox, checked: states.allowBankingCollection === true, "onSl-change": callbacks.onCheckboxChange, disabled: states.submitting, required: true, value: states.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText))),
|
|
135
|
+
h("sl-checkbox", { class: sheet.classes.Checkbox, checked: states.allowBankingCollection === true, "onSl-change": callbacks.onCheckboxChange, disabled: states.submitting || !states.emailCanBeUsed, required: true, value: states.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText))),
|
|
125
136
|
states.error && (h("div", { class: sheet.classes.ErrorMessage },
|
|
126
137
|
h("sqm-form-message", { class: sheet.classes.ErrorMessage, type: "error" },
|
|
127
138
|
h("p", { part: "alert-description" }, states.error)))),
|
|
139
|
+
!states.emailCanBeUsed && (h("div", { class: sheet.classes.ErrorMessage },
|
|
140
|
+
h("sqm-form-message", { type: "error" },
|
|
141
|
+
h("p", { part: "alert-description" }, emailVerificationMessage)))),
|
|
128
142
|
h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting ||
|
|
143
|
+
!states.emailCanBeUsed ||
|
|
129
144
|
!states.countryCode ||
|
|
130
145
|
!states.currency ||
|
|
131
146
|
!states.allowBankingCollection ||
|
|
@@ -31,12 +31,12 @@ import './utilities-cbd8f2eb.js';
|
|
|
31
31
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f84c04cf.js';
|
|
32
32
|
import './ErrorView-74cb3af8.js';
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
|
|
34
|
-
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-
|
|
34
|
+
import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-4ee8cc57.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
36
36
|
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-81526655.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-671ff96f.js';
|
|
38
38
|
import './data-0be04430.js';
|
|
39
|
-
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-
|
|
39
|
+
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-506d7d50.js';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -14385,6 +14385,14 @@ const CustomizeUrlSaving = () => {
|
|
|
14385
14385
|
isSaving: true,
|
|
14386
14386
|
})));
|
|
14387
14387
|
};
|
|
14388
|
+
const CustomizeUrlEditingMobileNarrow = () => {
|
|
14389
|
+
return (h("div", { style: { width: "320px", border: "1px dashed red" } },
|
|
14390
|
+
h(ShareLinkView, Object.assign({}, {
|
|
14391
|
+
...defaultCustomizeProps,
|
|
14392
|
+
isEditing: true,
|
|
14393
|
+
domainPrefix: "https://referral-marketing.mybrandname.com/",
|
|
14394
|
+
}))));
|
|
14395
|
+
};
|
|
14388
14396
|
|
|
14389
14397
|
const ShareLink = /*#__PURE__*/Object.freeze({
|
|
14390
14398
|
__proto__: null,
|
|
@@ -14408,7 +14416,8 @@ const ShareLink = /*#__PURE__*/Object.freeze({
|
|
|
14408
14416
|
CustomizeUrlValidationError: CustomizeUrlValidationError,
|
|
14409
14417
|
CustomizeUrlInvalidCharacters: CustomizeUrlInvalidCharacters,
|
|
14410
14418
|
CustomizeUrlProfanity: CustomizeUrlProfanity,
|
|
14411
|
-
CustomizeUrlSaving: CustomizeUrlSaving
|
|
14419
|
+
CustomizeUrlSaving: CustomizeUrlSaving,
|
|
14420
|
+
CustomizeUrlEditingMobileNarrow: CustomizeUrlEditingMobileNarrow
|
|
14412
14421
|
});
|
|
14413
14422
|
|
|
14414
14423
|
const UseShareLink_stories = {
|
|
@@ -19380,6 +19389,8 @@ const defaultText$2 = {
|
|
|
19380
19389
|
allowBankingCollection: "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information",
|
|
19381
19390
|
termsAndConditionsLabel: "terms and conditions",
|
|
19382
19391
|
termsAndConditionsLink: "https://terms.advocate.impact.com/PayoutTermsAndConditions.html",
|
|
19392
|
+
emailVerificationErrorText: "We couldn't verify your email. Please {loginLinkText} to continue.",
|
|
19393
|
+
loginLinkText: "log in to your Impact account",
|
|
19383
19394
|
};
|
|
19384
19395
|
const defaultProps$y = {
|
|
19385
19396
|
states: {
|
|
@@ -19393,6 +19404,7 @@ const defaultProps$y = {
|
|
|
19393
19404
|
countryCode: "",
|
|
19394
19405
|
currency: "",
|
|
19395
19406
|
error: "",
|
|
19407
|
+
emailCanBeUsed: true,
|
|
19396
19408
|
success: false,
|
|
19397
19409
|
filteredCountries: demoCountries,
|
|
19398
19410
|
filteredCurrencies: demoCurrencies,
|
|
@@ -19487,6 +19499,18 @@ const ValidationError$1 = () => {
|
|
|
19487
19499
|
};
|
|
19488
19500
|
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
19489
19501
|
};
|
|
19502
|
+
const EmailVerificationRequired = () => {
|
|
19503
|
+
const props = {
|
|
19504
|
+
...defaultProps$y,
|
|
19505
|
+
states: {
|
|
19506
|
+
...defaultProps$y.states,
|
|
19507
|
+
countryCode: "US",
|
|
19508
|
+
currency: "USD",
|
|
19509
|
+
emailCanBeUsed: false,
|
|
19510
|
+
},
|
|
19511
|
+
};
|
|
19512
|
+
return h(PartnerInfoModalView, Object.assign({}, props));
|
|
19513
|
+
};
|
|
19490
19514
|
const Closed = () => {
|
|
19491
19515
|
const props = {
|
|
19492
19516
|
...defaultProps$y,
|
|
@@ -19552,6 +19576,7 @@ const PartnerInfoModal = /*#__PURE__*/Object.freeze({
|
|
|
19552
19576
|
Submitting: Submitting,
|
|
19553
19577
|
WithError: WithError$3,
|
|
19554
19578
|
ValidationError: ValidationError$1,
|
|
19579
|
+
EmailVerificationRequired: EmailVerificationRequired,
|
|
19555
19580
|
Closed: Closed,
|
|
19556
19581
|
SQMComponentExistingPartner: SQMComponentExistingPartner,
|
|
19557
19582
|
SQMComponentNewPartner: SQMComponentNewPartner,
|