@saasquatch/mint-components 1.11.1-20 → 1.11.1-22
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-2ccdc7e5.js → ShadowViewAddon-b618dae6.js} +4 -4
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-share-button/useShareButton.js +4 -4
- package/dist/esm/{ShadowViewAddon-86b9b1f8.js → ShadowViewAddon-7e04ae86.js} +4 -4
- package/dist/esm/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-86b9b1f8.js → ShadowViewAddon-7e04ae86.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- 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-d0a2b7e8.entry.js → p-50c7fc8c.entry.js} +1 -1
- package/dist/mint-components/{p-ae23add2.system.js → p-60899021.system.js} +1 -1
- package/dist/mint-components/{p-717a3bee.system.entry.js → p-7f9e062d.system.entry.js} +1 -1
- package/dist/mint-components/{p-a2aa8f41.js → p-944f352e.js} +1 -1
- package/dist/mint-components/p-9ed09b3a.system.js +1 -1
- package/dist/mint-components/{p-7a32bb79.system.entry.js → p-ce0e674b.system.entry.js} +1 -1
- package/dist/mint-components/{p-8247781c.entry.js → p-f9db5839.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -474,8 +474,8 @@ function useShareButton(props) {
|
|
|
474
474
|
programId: programId,
|
|
475
475
|
shareMedium: medium.toUpperCase(),
|
|
476
476
|
};
|
|
477
|
-
const
|
|
478
|
-
const overrideData =
|
|
477
|
+
const contextData = index_module.In(copyTextView.REFERRAL_CODES_NAMESPACE);
|
|
478
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
479
479
|
// only queries if a programId is available
|
|
480
480
|
const res = index_module.yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
481
481
|
const [setCopied, copiedRes] = index_module.$e(copyTextView.SET_CODE_COPIED);
|
|
@@ -487,8 +487,8 @@ function useShareButton(props) {
|
|
|
487
487
|
async function onClick() {
|
|
488
488
|
var _a, _b, _c, _d;
|
|
489
489
|
if (overrideData) {
|
|
490
|
-
await setCopied({ referralCode:
|
|
491
|
-
|
|
490
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
491
|
+
contextData.refresh();
|
|
492
492
|
}
|
|
493
493
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
494
494
|
environment.type === "SquatchAndroid") {
|
|
@@ -20,7 +20,7 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
20
20
|
const useRegistrationFormState = require('./useRegistrationFormState-49dd9295.js');
|
|
21
21
|
const utilities = require('./utilities-719c980a.js');
|
|
22
22
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
23
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-b618dae6.js');
|
|
24
24
|
require('./sqm-portal-container-view-976bf0f5.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-7c70d7f9.js');
|
|
|
29
29
|
require('./utilities-719c980a.js');
|
|
30
30
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-1b85b8cf.js');
|
|
31
31
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-cc3c87c3.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-b618dae6.js');
|
|
33
33
|
const sqmPortalContainerView = require('./sqm-portal-container-view-976bf0f5.js');
|
|
34
34
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-2f4f426b.js');
|
|
35
35
|
|
|
@@ -64,8 +64,8 @@ export function useShareButton(props) {
|
|
|
64
64
|
programId: programId,
|
|
65
65
|
shareMedium: medium.toUpperCase(),
|
|
66
66
|
};
|
|
67
|
-
const
|
|
68
|
-
const overrideData =
|
|
67
|
+
const contextData = useParentValue(REFERRAL_CODES_NAMESPACE);
|
|
68
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
69
69
|
// only queries if a programId is available
|
|
70
70
|
const res = useQuery(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
71
71
|
const [setCopied, copiedRes] = useMutation(SET_CODE_COPIED);
|
|
@@ -77,8 +77,8 @@ export function useShareButton(props) {
|
|
|
77
77
|
async function onClick() {
|
|
78
78
|
var _a, _b, _c, _d;
|
|
79
79
|
if (overrideData) {
|
|
80
|
-
await setCopied({ referralCode:
|
|
81
|
-
|
|
80
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
81
|
+
contextData.refresh();
|
|
82
82
|
}
|
|
83
83
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
84
84
|
environment.type === "SquatchAndroid") {
|
|
@@ -472,8 +472,8 @@ function useShareButton(props) {
|
|
|
472
472
|
programId: programId,
|
|
473
473
|
shareMedium: medium.toUpperCase(),
|
|
474
474
|
};
|
|
475
|
-
const
|
|
476
|
-
const overrideData =
|
|
475
|
+
const contextData = In(REFERRAL_CODES_NAMESPACE);
|
|
476
|
+
const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
|
|
477
477
|
// only queries if a programId is available
|
|
478
478
|
const res = yn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
|
|
479
479
|
const [setCopied, copiedRes] = $e(SET_CODE_COPIED);
|
|
@@ -485,8 +485,8 @@ function useShareButton(props) {
|
|
|
485
485
|
async function onClick() {
|
|
486
486
|
var _a, _b, _c, _d;
|
|
487
487
|
if (overrideData) {
|
|
488
|
-
await setCopied({ referralCode:
|
|
489
|
-
|
|
488
|
+
await setCopied({ referralCode: contextData.referralCode });
|
|
489
|
+
contextData.refresh();
|
|
490
490
|
}
|
|
491
491
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
492
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-faea9402.js';
|
|
17
17
|
import { i as isEmpty } from './utilities-292b61b9.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-
|
|
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-7e04ae86.js';
|
|
20
20
|
import './sqm-portal-container-view-83df005d.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
@@ -25,7 +25,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-847526a2.js';
|
|
|
25
25
|
import './utilities-292b61b9.js';
|
|
26
26
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-865655da.js';
|
|
27
27
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-6c60df25.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-
|
|
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-7e04ae86.js';
|
|
29
29
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-83df005d.js';
|
|
30
30
|
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-7d1aa71f.js';
|
|
31
31
|
|