@saasquatch/mint-components 2.1.8-6 → 2.1.8-8
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-ff4c127d.js → ShadowViewAddon-032ec191.js} +10 -6
- package/dist/cjs/sqm-big-stat_45.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +10 -5
- package/dist/esm/{ShadowViewAddon-e7316993.js → ShadowViewAddon-c416da17.js} +10 -6
- package/dist/esm/sqm-big-stat_45.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/{ShadowViewAddon-e7316993.js → ShadowViewAddon-c416da17.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_45.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-a4e34022.js → p-79d1f59e.js} +4 -1
- package/dist/mint-components/{p-362dfa80.entry.js → p-ac41bf4f.entry.js} +1 -1
- package/dist/mint-components/{p-9e361ab3.entry.js → p-b2d6964f.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -1
- package/dist/mint-components/{p-ab42e982.system.js → p-d9d0cc60.system.js} +1 -1
- package/dist/mint-components/{p-004d0c3a.system.entry.js → p-f81a82ef.system.entry.js} +1 -1
- package/dist/mint-components/{p-61ec1ef9.system.entry.js → p-fae169d4.system.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -4457,6 +4457,9 @@ const SHARE_LINK_EDIT_COUNT = index_module.dist.gql `
|
|
|
4457
4457
|
... on User {
|
|
4458
4458
|
shareLinkCodes {
|
|
4459
4459
|
totalCount
|
|
4460
|
+
data {
|
|
4461
|
+
isVanity
|
|
4462
|
+
}
|
|
4460
4463
|
}
|
|
4461
4464
|
}
|
|
4462
4465
|
}
|
|
@@ -4482,7 +4485,7 @@ function parsePathSuffix(url) {
|
|
|
4482
4485
|
}
|
|
4483
4486
|
}
|
|
4484
4487
|
function useShareLink(props) {
|
|
4485
|
-
var _a, _b,
|
|
4488
|
+
var _a, _b, _d, _e, _f, _g;
|
|
4486
4489
|
const { programId = index_module.H() } = props;
|
|
4487
4490
|
const user = index_module.J();
|
|
4488
4491
|
const engagementMedium = index_module.B();
|
|
@@ -4505,9 +4508,11 @@ function useShareLink(props) {
|
|
|
4505
4508
|
const [showSuccess, setShowSuccess] = domContextHooks_module.useState(false);
|
|
4506
4509
|
const debounceTimerRef = domContextHooks_module.useRef(undefined);
|
|
4507
4510
|
const domainPrefix = parseDomainPrefix(copyString);
|
|
4508
|
-
|
|
4509
|
-
const customizeDisabled = !hasPrimaryLinkDomain;
|
|
4510
|
-
const
|
|
4511
|
+
// TODO: change this back
|
|
4512
|
+
// const customizeDisabled = !hasPrimaryLinkDomain;
|
|
4513
|
+
const customizeDisabled = false;
|
|
4514
|
+
const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
|
|
4515
|
+
const editCount = vanityCount;
|
|
4511
4516
|
const editsRemaining = Math.max(0, MAX_EDITS - editCount);
|
|
4512
4517
|
const limitReached = editsRemaining <= 0;
|
|
4513
4518
|
function mapErrorCodeToInfo(errorCode) {
|
|
@@ -4642,8 +4647,7 @@ function useShareLink(props) {
|
|
|
4642
4647
|
editLimitText: props.editLimitText,
|
|
4643
4648
|
editLimitReachedText: props.editLimitReachedText,
|
|
4644
4649
|
supportLinkText: props.supportLinkText,
|
|
4645
|
-
|
|
4646
|
-
customizeDisabled: false,
|
|
4650
|
+
customizeDisabled,
|
|
4647
4651
|
customizeDisabledTooltip: props.customizeDisabledTooltip,
|
|
4648
4652
|
onCustomizeClick,
|
|
4649
4653
|
onEditValueChange,
|
|
@@ -27,7 +27,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
|
|
|
27
27
|
const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
|
|
28
28
|
const utilities = require('./utilities-fcdb9504.js');
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-032ec191.js');
|
|
31
31
|
require('./sqm-portal-container-view-70a47420.js');
|
|
32
32
|
const data = require('./data-8c8a08f6.js');
|
|
33
33
|
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
@@ -33,7 +33,7 @@ require('./utilities-fcdb9504.js');
|
|
|
33
33
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-6b1acd90.js');
|
|
34
34
|
require('./ErrorView-ee7b0f36.js');
|
|
35
35
|
const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
|
|
36
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
36
|
+
const ShadowViewAddon = require('./ShadowViewAddon-032ec191.js');
|
|
37
37
|
const sqmPortalContainerView = require('./sqm-portal-container-view-70a47420.js');
|
|
38
38
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-53306f6e.js');
|
|
39
39
|
const data = require('./data-8c8a08f6.js');
|
|
@@ -60,6 +60,9 @@ const SHARE_LINK_EDIT_COUNT = gql `
|
|
|
60
60
|
... on User {
|
|
61
61
|
shareLinkCodes {
|
|
62
62
|
totalCount
|
|
63
|
+
data {
|
|
64
|
+
isVanity
|
|
65
|
+
}
|
|
63
66
|
}
|
|
64
67
|
}
|
|
65
68
|
}
|
|
@@ -85,7 +88,7 @@ function parsePathSuffix(url) {
|
|
|
85
88
|
}
|
|
86
89
|
}
|
|
87
90
|
export function useShareLink(props) {
|
|
88
|
-
var _a, _b, _c, _d, _e, _f;
|
|
91
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
89
92
|
const { programId = useProgramId() } = props;
|
|
90
93
|
const user = useUserIdentity();
|
|
91
94
|
const engagementMedium = useEngagementMedium();
|
|
@@ -109,8 +112,11 @@ export function useShareLink(props) {
|
|
|
109
112
|
const debounceTimerRef = useRef(undefined);
|
|
110
113
|
const domainPrefix = parseDomainPrefix(copyString);
|
|
111
114
|
const hasPrimaryLinkDomain = ((_c = linkDomainData === null || linkDomainData === void 0 ? void 0 : linkDomainData.tenantSettings) === null || _c === void 0 ? void 0 : _c.primaryLinkDomain) != null;
|
|
112
|
-
|
|
113
|
-
const
|
|
115
|
+
// TODO: change this back
|
|
116
|
+
// const customizeDisabled = !hasPrimaryLinkDomain;
|
|
117
|
+
const customizeDisabled = false;
|
|
118
|
+
const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
|
|
119
|
+
const editCount = vanityCount;
|
|
114
120
|
const editsRemaining = Math.max(0, MAX_EDITS - editCount);
|
|
115
121
|
const limitReached = editsRemaining <= 0;
|
|
116
122
|
function mapErrorCodeToInfo(errorCode) {
|
|
@@ -245,8 +251,7 @@ export function useShareLink(props) {
|
|
|
245
251
|
editLimitText: props.editLimitText,
|
|
246
252
|
editLimitReachedText: props.editLimitReachedText,
|
|
247
253
|
supportLinkText: props.supportLinkText,
|
|
248
|
-
|
|
249
|
-
customizeDisabled: false,
|
|
254
|
+
customizeDisabled,
|
|
250
255
|
customizeDisabledTooltip: props.customizeDisabledTooltip,
|
|
251
256
|
onCustomizeClick,
|
|
252
257
|
onEditValueChange,
|
|
@@ -4455,6 +4455,9 @@ const SHARE_LINK_EDIT_COUNT = dist.gql `
|
|
|
4455
4455
|
... on User {
|
|
4456
4456
|
shareLinkCodes {
|
|
4457
4457
|
totalCount
|
|
4458
|
+
data {
|
|
4459
|
+
isVanity
|
|
4460
|
+
}
|
|
4458
4461
|
}
|
|
4459
4462
|
}
|
|
4460
4463
|
}
|
|
@@ -4480,7 +4483,7 @@ function parsePathSuffix(url) {
|
|
|
4480
4483
|
}
|
|
4481
4484
|
}
|
|
4482
4485
|
function useShareLink(props) {
|
|
4483
|
-
var _a, _b,
|
|
4486
|
+
var _a, _b, _d, _e, _f, _g;
|
|
4484
4487
|
const { programId = H() } = props;
|
|
4485
4488
|
const user = J();
|
|
4486
4489
|
const engagementMedium = B();
|
|
@@ -4503,9 +4506,11 @@ function useShareLink(props) {
|
|
|
4503
4506
|
const [showSuccess, setShowSuccess] = useState(false);
|
|
4504
4507
|
const debounceTimerRef = useRef(undefined);
|
|
4505
4508
|
const domainPrefix = parseDomainPrefix(copyString);
|
|
4506
|
-
|
|
4507
|
-
const customizeDisabled = !hasPrimaryLinkDomain;
|
|
4508
|
-
const
|
|
4509
|
+
// TODO: change this back
|
|
4510
|
+
// const customizeDisabled = !hasPrimaryLinkDomain;
|
|
4511
|
+
const customizeDisabled = false;
|
|
4512
|
+
const vanityCount = (_g = (_f = (_e = (_d = editCountData === null || editCountData === void 0 ? void 0 : editCountData.viewer) === null || _d === void 0 ? void 0 : _d.shareLinkCodes) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.filter((code) => code.isVanity).length) !== null && _g !== void 0 ? _g : 0;
|
|
4513
|
+
const editCount = vanityCount;
|
|
4509
4514
|
const editsRemaining = Math.max(0, MAX_EDITS - editCount);
|
|
4510
4515
|
const limitReached = editsRemaining <= 0;
|
|
4511
4516
|
function mapErrorCodeToInfo(errorCode) {
|
|
@@ -4640,8 +4645,7 @@ function useShareLink(props) {
|
|
|
4640
4645
|
editLimitText: props.editLimitText,
|
|
4641
4646
|
editLimitReachedText: props.editLimitReachedText,
|
|
4642
4647
|
supportLinkText: props.supportLinkText,
|
|
4643
|
-
|
|
4644
|
-
customizeDisabled: false,
|
|
4648
|
+
customizeDisabled,
|
|
4645
4649
|
customizeDisabledTooltip: props.customizeDisabledTooltip,
|
|
4646
4650
|
onCustomizeClick,
|
|
4647
4651
|
onEditValueChange,
|
|
@@ -23,7 +23,7 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
|
|
|
23
23
|
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-dd4e8b08.js';
|
|
24
24
|
import { i as isEmpty } from './utilities-77b1e0cc.js';
|
|
25
25
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
|
-
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
26
|
+
import { u as useDemoBigStat, W as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as LeadDropdownFieldView, Q as LeadFormView, X as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, Y as demoRewardExchange, G as useShareButton, a as ShareButtonView, K as useShareLink, J as ShareLinkView, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-c416da17.js';
|
|
27
27
|
import './sqm-portal-container-view-a8c708cd.js';
|
|
28
28
|
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, g as getCountryObj, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, h as FINANCE_NETWORK_SETTINGS_NAMESPACE, i as GET_FINANCE_NETWORK_SETTINGS, j as CURRENCIES_QUERY_NAMESPACE, k as GET_CURRENCIES, L as LoadingView } from './data-12e6aae1.js';
|
|
29
29
|
import { p as parseStates, e as extractProps } from './extractProps-54064fb0.js';
|
|
@@ -29,7 +29,7 @@ import './utilities-77b1e0cc.js';
|
|
|
29
29
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-cfbc0eb0.js';
|
|
30
30
|
import './ErrorView-74cb3af8.js';
|
|
31
31
|
import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
|
|
32
|
-
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-
|
|
32
|
+
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-c416da17.js';
|
|
33
33
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-a8c708cd.js';
|
|
34
34
|
import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-19d81a2b.js';
|
|
35
35
|
import { t as taxTypeToName, L as LoadingView } from './data-12e6aae1.js';
|