@saasquatch/mint-components 1.11.1-15 → 1.11.1-16

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 (31) hide show
  1. package/dist/cjs/{ShadowViewAddon-3e6c5c29.js → ShadowViewAddon-1a623a07.js} +6 -5
  2. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +1 -1
  3. package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
  4. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  5. package/dist/collection/components/sqm-referral-code/useReferralCode.js +2 -2
  6. package/dist/collection/components/sqm-share-button/useShareButton.js +4 -3
  7. package/dist/collection/components/sqm-share-link/useShareLink.js +2 -2
  8. package/dist/esm/{ShadowViewAddon-ee414299.js → ShadowViewAddon-78a4a290.js} +6 -5
  9. package/dist/esm/sqm-big-stat_38.entry.js +1 -1
  10. package/dist/esm/sqm-pagination_3.entry.js +2 -2
  11. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  12. package/dist/esm-es5/ShadowViewAddon-78a4a290.js +1 -0
  13. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  14. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  15. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  16. package/dist/mint-components/mint-components.esm.js +1 -1
  17. package/dist/mint-components/p-007c4401.system.js +1 -0
  18. package/dist/mint-components/{p-a8cfd480.system.entry.js → p-3d016dc3.system.entry.js} +1 -1
  19. package/dist/mint-components/{p-60d80d37.entry.js → p-5499a24d.entry.js} +1 -1
  20. package/dist/mint-components/p-5fc8d87c.system.js +1 -1
  21. package/dist/mint-components/p-6a8e187d.system.entry.js +1 -0
  22. package/dist/mint-components/{p-c43ed243.js → p-986076c7.js} +2 -2
  23. package/dist/mint-components/{p-aef3b495.system.entry.js → p-a7d1352f.system.entry.js} +1 -1
  24. package/dist/mint-components/{p-27431182.entry.js → p-b5ae976f.entry.js} +2 -2
  25. package/dist/mint-components/{p-35f8d75b.entry.js → p-b62153fa.entry.js} +1 -1
  26. package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +3 -1
  27. package/docs/docs.docx +0 -0
  28. package/package.json +1 -1
  29. package/dist/esm-es5/ShadowViewAddon-ee414299.js +0 -1
  30. package/dist/mint-components/p-261944f3.system.js +0 -1
  31. package/dist/mint-components/p-c5ee3214.system.entry.js +0 -1
@@ -388,8 +388,8 @@ function useShareLink(props) {
388
388
  const [open, setOpen] = stencilHooks_module.useState(false);
389
389
  async function onClick() {
390
390
  if (contextData) {
391
- await setCopied(contextData.referralCode);
392
- await contextData.refetch();
391
+ await setCopied({ referralCode: contextData.referralCode });
392
+ await contextData.refetch({ engagementMedium });
393
393
  }
394
394
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
395
395
  // Only if called from a user-initiated event
@@ -468,8 +468,9 @@ function useShareButton(props) {
468
468
  const { sharetitle, sharetext, medium } = props;
469
469
  const programId = props.programId ? props.programId : index_module.H();
470
470
  const user = index_module.Q();
471
+ const engagementMedium = index_module.B();
471
472
  const variables = {
472
- engagementMedium: index_module.B(),
473
+ engagementMedium,
473
474
  programId: programId,
474
475
  shareMedium: medium.toUpperCase(),
475
476
  };
@@ -486,8 +487,8 @@ function useShareButton(props) {
486
487
  async function onClick() {
487
488
  var _a, _b, _c, _d;
488
489
  if (overrideData) {
489
- await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
490
- await overrideData.refetch();
490
+ await setCopied({ referralCode: overrideData.referralCode });
491
+ await overrideData.refetch({ engagementMedium });
491
492
  }
492
493
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
493
494
  environment.type === "SquatchAndroid") {
@@ -20,7 +20,7 @@ const index$1 = require('./index-8c6255f5.js');
20
20
  const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
21
21
  const utilities = require('./utilities-cec9dd36.js');
22
22
  const AsYouType = require('./AsYouType-6788393a.js');
23
- const ShadowViewAddon = require('./ShadowViewAddon-3e6c5c29.js');
23
+ const ShadowViewAddon = require('./ShadowViewAddon-1a623a07.js');
24
24
  require('./sqm-portal-container-view-990a85a3.js');
25
25
 
26
26
  const BigStat = class {
@@ -118,8 +118,8 @@ function useReferralCode(props) {
118
118
  const [open, setOpen] = stencilHooks_module.useState(false);
119
119
  async function onClick() {
120
120
  if (contextData) {
121
- await setCopied(contextData.referralCode);
122
- await contextData.refetch();
121
+ await setCopied({ referralCode: contextData.referralCode });
122
+ await contextData.refetch({ engagementMedium });
123
123
  }
124
124
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
125
125
  // Only if called from a user-initiated event
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-fde54e35.js');
29
29
  require('./utilities-cec9dd36.js');
30
30
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-34771d2c.js');
31
31
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-c8f91506.js');
32
- const ShadowViewAddon = require('./ShadowViewAddon-3e6c5c29.js');
32
+ const ShadowViewAddon = require('./ShadowViewAddon-1a623a07.js');
33
33
  const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
34
34
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
35
35
 
@@ -31,8 +31,8 @@ export function useReferralCode(props) {
31
31
  const [open, setOpen] = useState(false);
32
32
  async function onClick() {
33
33
  if (contextData) {
34
- await setCopied(contextData.referralCode);
35
- await contextData.refetch();
34
+ await setCopied({ referralCode: contextData.referralCode });
35
+ await contextData.refetch({ engagementMedium });
36
36
  }
37
37
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
38
38
  // Only if called from a user-initiated event
@@ -58,8 +58,9 @@ export function useShareButton(props) {
58
58
  const { sharetitle, sharetext, medium } = props;
59
59
  const programId = props.programId ? props.programId : useProgramId();
60
60
  const user = useUserIdentity();
61
+ const engagementMedium = useEngagementMedium();
61
62
  const variables = {
62
- engagementMedium: useEngagementMedium(),
63
+ engagementMedium,
63
64
  programId: programId,
64
65
  shareMedium: medium.toUpperCase(),
65
66
  };
@@ -76,8 +77,8 @@ export function useShareButton(props) {
76
77
  async function onClick() {
77
78
  var _a, _b, _c, _d;
78
79
  if (overrideData) {
79
- await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
80
- await overrideData.refetch();
80
+ await setCopied({ referralCode: overrideData.referralCode });
81
+ await overrideData.refetch({ engagementMedium });
81
82
  }
82
83
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
83
84
  environment.type === "SquatchAndroid") {
@@ -35,8 +35,8 @@ export function useShareLink(props) {
35
35
  const [open, setOpen] = useState(false);
36
36
  async function onClick() {
37
37
  if (contextData) {
38
- await setCopied(contextData.referralCode);
39
- await contextData.refetch();
38
+ await setCopied({ referralCode: contextData.referralCode });
39
+ await contextData.refetch({ engagementMedium });
40
40
  }
41
41
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
42
42
  // Only if called from a user-initiated event
@@ -386,8 +386,8 @@ function useShareLink(props) {
386
386
  const [open, setOpen] = useState(false);
387
387
  async function onClick() {
388
388
  if (contextData) {
389
- await setCopied(contextData.referralCode);
390
- await contextData.refetch();
389
+ await setCopied({ referralCode: contextData.referralCode });
390
+ await contextData.refetch({ engagementMedium });
391
391
  }
392
392
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
393
393
  // Only if called from a user-initiated event
@@ -466,8 +466,9 @@ function useShareButton(props) {
466
466
  const { sharetitle, sharetext, medium } = props;
467
467
  const programId = props.programId ? props.programId : H();
468
468
  const user = Q();
469
+ const engagementMedium = B();
469
470
  const variables = {
470
- engagementMedium: B(),
471
+ engagementMedium,
471
472
  programId: programId,
472
473
  shareMedium: medium.toUpperCase(),
473
474
  };
@@ -484,8 +485,8 @@ function useShareButton(props) {
484
485
  async function onClick() {
485
486
  var _a, _b, _c, _d;
486
487
  if (overrideData) {
487
- await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
488
- await overrideData.refetch();
488
+ await setCopied({ referralCode: overrideData.referralCode });
489
+ await overrideData.refetch({ engagementMedium });
489
490
  }
490
491
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
491
492
  environment.type === "SquatchAndroid") {
@@ -16,7 +16,7 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
16
16
  import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-53c71782.js';
17
17
  import { i as isEmpty } from './utilities-18d10876.js';
18
18
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
19
- import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-ee414299.js';
19
+ import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-78a4a290.js';
20
20
  import './sqm-portal-container-view-6c582684.js';
21
21
 
22
22
  const BigStat = class {
@@ -114,8 +114,8 @@ function useReferralCode(props) {
114
114
  const [open, setOpen] = useState(false);
115
115
  async function onClick() {
116
116
  if (contextData) {
117
- await setCopied(contextData.referralCode);
118
- await contextData.refetch();
117
+ await setCopied({ referralCode: contextData.referralCode });
118
+ await contextData.refetch({ engagementMedium });
119
119
  }
120
120
  // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
121
121
  // Only if called from a user-initiated event
@@ -25,7 +25,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-d72dd5ac.js';
25
25
  import './utilities-18d10876.js';
26
26
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f1454d43.js';
27
27
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-3739f523.js';
28
- import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-ee414299.js';
28
+ import { S as ShareButtonView, L as LeaderboardView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-78a4a290.js';
29
29
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
30
30
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-09cc28d6.js';
31
31