@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.
Files changed (52) hide show
  1. package/dist/cjs/{ShadowViewAddon-331ac9e4.js → ShadowViewAddon-ed5d27ef.js} +11 -2
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_47.cjs.entry.js +1 -1
  5. package/dist/cjs/sqm-email-verification_2.cjs.entry.js +17 -4
  6. package/dist/cjs/{sqm-partner-info-modal-view-d9b61d54.js → sqm-partner-info-modal-view-a352d3ae.js} +19 -4
  7. package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -3
  8. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +15 -0
  9. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +19 -4
  10. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +57 -1
  11. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +5 -3
  12. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +8 -0
  13. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +11 -2
  14. package/dist/esm/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.js} +11 -2
  15. package/dist/esm/loader.js +1 -1
  16. package/dist/esm/mint-components.js +1 -1
  17. package/dist/esm/sqm-big-stat_47.entry.js +1 -1
  18. package/dist/esm/sqm-email-verification_2.entry.js +17 -4
  19. package/dist/esm/{sqm-partner-info-modal-view-b921fed1.js → sqm-partner-info-modal-view-506d7d50.js} +19 -4
  20. package/dist/esm/sqm-stencilbook.entry.js +28 -3
  21. package/dist/esm-es5/{ShadowViewAddon-ae0cd8b9.js → ShadowViewAddon-4ee8cc57.js} +1 -1
  22. package/dist/esm-es5/loader.js +1 -1
  23. package/dist/esm-es5/mint-components.js +1 -1
  24. package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -1
  25. package/dist/esm-es5/sqm-email-verification_2.entry.js +1 -1
  26. package/dist/esm-es5/sqm-partner-info-modal-view-506d7d50.js +1 -0
  27. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  28. package/dist/mint-components/mint-components.esm.js +1 -1
  29. package/dist/mint-components/{p-3d2fe16b.js → p-221d044f.js} +4 -4
  30. package/dist/mint-components/{p-87f119f0.system.js → p-4148d8d7.system.js} +1 -1
  31. package/dist/mint-components/p-a492f5de.system.entry.js +1 -0
  32. package/dist/mint-components/p-bfb00685.system.js +1 -1
  33. package/dist/mint-components/{p-cf12347b.system.entry.js → p-c4c65992.system.entry.js} +1 -1
  34. package/dist/mint-components/{p-654cdee8.entry.js → p-c9f5def4.entry.js} +5 -3
  35. package/dist/mint-components/{p-231926a3.system.entry.js → p-ca6c2c4c.system.entry.js} +1 -1
  36. package/dist/mint-components/{p-1e9c339f.entry.js → p-cc320bac.entry.js} +2 -2
  37. package/dist/mint-components/p-e359de22.system.js +1 -0
  38. package/dist/mint-components/{p-0d89ef44.entry.js → p-eae73594.entry.js} +1 -1
  39. package/dist/mint-components/p-ef3ffaa9.js +1 -0
  40. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +1 -0
  41. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +3 -0
  42. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +9 -0
  43. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  44. package/dist/types/components.d.ts +18 -0
  45. package/docs/docs.docx +0 -0
  46. package/docs/raisins.json +1 -1
  47. package/grapesjs/grapesjs.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/esm-es5/sqm-partner-info-modal-view-b921fed1.js +0 -1
  50. package/dist/mint-components/p-288249ae.system.entry.js +0 -1
  51. package/dist/mint-components/p-db73312a.system.js +0 -1
  52. package/dist/mint-components/p-f75ead20.js +0 -1
@@ -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 || (!!states.currency && states.isExistingPartner), required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
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-ae0cd8b9.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-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-b921fed1.js';
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,