@saasquatch/mint-components 2.1.8-13 → 2.1.8-15
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-43300e54.js → ShadowViewAddon-28ad7150.js} +9 -10
- 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 +9 -10
- package/dist/esm/{ShadowViewAddon-cb281da9.js → ShadowViewAddon-25647ca5.js} +9 -10
- 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-cb281da9.js → ShadowViewAddon-25647ca5.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-eb7919cd.system.js → p-320ea7d9.system.js} +1 -1
- package/dist/mint-components/{p-20d4c76b.system.entry.js → p-3d9467fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7081350.js → p-7f3ec58b.js} +3 -7
- package/dist/mint-components/{p-54985e41.entry.js → p-a3e69aaf.entry.js} +1 -1
- package/dist/mint-components/{p-784e77ea.entry.js → p-a5b80661.entry.js} +1 -1
- package/dist/mint-components/{p-ca2276d9.system.entry.js → p-bccd4c2e.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -1
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -4397,14 +4397,10 @@ const MAX_EDITS = 5;
|
|
|
4397
4397
|
const CHARACTER_LIMIT = 15;
|
|
4398
4398
|
const MIN_CHARACTERS = 3;
|
|
4399
4399
|
const MessageLinkQuery$1 = index_module.dist.gql `
|
|
4400
|
-
query ($programId: ID
|
|
4400
|
+
query ($programId: ID) {
|
|
4401
4401
|
user: viewer {
|
|
4402
4402
|
... on User {
|
|
4403
|
-
shareLink(
|
|
4404
|
-
programId: $programId
|
|
4405
|
-
engagementMedium: $engagementMedium
|
|
4406
|
-
shareMedium: DIRECT
|
|
4407
|
-
)
|
|
4403
|
+
shareLink(programId: $programId)
|
|
4408
4404
|
}
|
|
4409
4405
|
}
|
|
4410
4406
|
}
|
|
@@ -4470,8 +4466,8 @@ function parseDomainPrefix(url) {
|
|
|
4470
4466
|
function parsePathSuffix(url) {
|
|
4471
4467
|
try {
|
|
4472
4468
|
const parsed = new URL(url);
|
|
4473
|
-
// Remove leading slash
|
|
4474
|
-
return parsed.pathname.slice(1)
|
|
4469
|
+
// Remove leading slash and strip query params/hash
|
|
4470
|
+
return parsed.pathname.slice(1);
|
|
4475
4471
|
}
|
|
4476
4472
|
catch {
|
|
4477
4473
|
return "";
|
|
@@ -4483,7 +4479,7 @@ function useShareLink(props) {
|
|
|
4483
4479
|
const user = index_module.J();
|
|
4484
4480
|
const engagementMedium = index_module.B();
|
|
4485
4481
|
const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
|
|
4486
|
-
const { data, refetch } = index_module.wn(MessageLinkQuery$1, { programId
|
|
4482
|
+
const { data, refetch } = index_module.wn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
4487
4483
|
const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
|
|
4488
4484
|
const [setCopied] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
|
|
4489
4485
|
const [addShareLinkCode, { loading: isSaving }] = index_module.$e(ADD_SHARE_LINK_CODE);
|
|
@@ -4587,7 +4583,10 @@ function useShareLink(props) {
|
|
|
4587
4583
|
}
|
|
4588
4584
|
async function onSave() {
|
|
4589
4585
|
var _a, _b;
|
|
4590
|
-
if (!editValue ||
|
|
4586
|
+
if (!editValue ||
|
|
4587
|
+
editValue.length < MIN_CHARACTERS ||
|
|
4588
|
+
validationError ||
|
|
4589
|
+
isValidating)
|
|
4591
4590
|
return;
|
|
4592
4591
|
try {
|
|
4593
4592
|
await addShareLinkCode({
|
|
@@ -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-28ad7150.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-28ad7150.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');
|
|
@@ -6,14 +6,10 @@ const MAX_EDITS = 5;
|
|
|
6
6
|
const CHARACTER_LIMIT = 15;
|
|
7
7
|
const MIN_CHARACTERS = 3;
|
|
8
8
|
const MessageLinkQuery = gql `
|
|
9
|
-
query ($programId: ID
|
|
9
|
+
query ($programId: ID) {
|
|
10
10
|
user: viewer {
|
|
11
11
|
... on User {
|
|
12
|
-
shareLink(
|
|
13
|
-
programId: $programId
|
|
14
|
-
engagementMedium: $engagementMedium
|
|
15
|
-
shareMedium: DIRECT
|
|
16
|
-
)
|
|
12
|
+
shareLink(programId: $programId)
|
|
17
13
|
}
|
|
18
14
|
}
|
|
19
15
|
}
|
|
@@ -79,8 +75,8 @@ function parseDomainPrefix(url) {
|
|
|
79
75
|
function parsePathSuffix(url) {
|
|
80
76
|
try {
|
|
81
77
|
const parsed = new URL(url);
|
|
82
|
-
// Remove leading slash
|
|
83
|
-
return parsed.pathname.slice(1)
|
|
78
|
+
// Remove leading slash and strip query params/hash
|
|
79
|
+
return parsed.pathname.slice(1);
|
|
84
80
|
}
|
|
85
81
|
catch {
|
|
86
82
|
return "";
|
|
@@ -92,7 +88,7 @@ export function useShareLink(props) {
|
|
|
92
88
|
const user = useUserIdentity();
|
|
93
89
|
const engagementMedium = useEngagementMedium();
|
|
94
90
|
const contextData = useParentValue(REFERRAL_CODES_NAMESPACE);
|
|
95
|
-
const { data, refetch } = useQuery(MessageLinkQuery, { programId
|
|
91
|
+
const { data, refetch } = useQuery(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
96
92
|
const [sendLoadEvent] = useMutation(WIDGET_ENGAGEMENT_EVENT);
|
|
97
93
|
const [setCopied] = useMutation(SET_CODE_COPIED);
|
|
98
94
|
const [addShareLinkCode, { loading: isSaving }] = useMutation(ADD_SHARE_LINK_CODE);
|
|
@@ -196,7 +192,10 @@ export function useShareLink(props) {
|
|
|
196
192
|
}
|
|
197
193
|
async function onSave() {
|
|
198
194
|
var _a, _b;
|
|
199
|
-
if (!editValue ||
|
|
195
|
+
if (!editValue ||
|
|
196
|
+
editValue.length < MIN_CHARACTERS ||
|
|
197
|
+
validationError ||
|
|
198
|
+
isValidating)
|
|
200
199
|
return;
|
|
201
200
|
try {
|
|
202
201
|
await addShareLinkCode({
|
|
@@ -4395,14 +4395,10 @@ const MAX_EDITS = 5;
|
|
|
4395
4395
|
const CHARACTER_LIMIT = 15;
|
|
4396
4396
|
const MIN_CHARACTERS = 3;
|
|
4397
4397
|
const MessageLinkQuery$1 = dist.gql `
|
|
4398
|
-
query ($programId: ID
|
|
4398
|
+
query ($programId: ID) {
|
|
4399
4399
|
user: viewer {
|
|
4400
4400
|
... on User {
|
|
4401
|
-
shareLink(
|
|
4402
|
-
programId: $programId
|
|
4403
|
-
engagementMedium: $engagementMedium
|
|
4404
|
-
shareMedium: DIRECT
|
|
4405
|
-
)
|
|
4401
|
+
shareLink(programId: $programId)
|
|
4406
4402
|
}
|
|
4407
4403
|
}
|
|
4408
4404
|
}
|
|
@@ -4468,8 +4464,8 @@ function parseDomainPrefix(url) {
|
|
|
4468
4464
|
function parsePathSuffix(url) {
|
|
4469
4465
|
try {
|
|
4470
4466
|
const parsed = new URL(url);
|
|
4471
|
-
// Remove leading slash
|
|
4472
|
-
return parsed.pathname.slice(1)
|
|
4467
|
+
// Remove leading slash and strip query params/hash
|
|
4468
|
+
return parsed.pathname.slice(1);
|
|
4473
4469
|
}
|
|
4474
4470
|
catch {
|
|
4475
4471
|
return "";
|
|
@@ -4481,7 +4477,7 @@ function useShareLink(props) {
|
|
|
4481
4477
|
const user = J();
|
|
4482
4478
|
const engagementMedium = B();
|
|
4483
4479
|
const contextData = Fn(REFERRAL_CODES_NAMESPACE);
|
|
4484
|
-
const { data, refetch } = wn(MessageLinkQuery$1, { programId
|
|
4480
|
+
const { data, refetch } = wn(MessageLinkQuery$1, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
|
|
4485
4481
|
const [sendLoadEvent] = $e(WIDGET_ENGAGEMENT_EVENT);
|
|
4486
4482
|
const [setCopied] = $e(SET_CODE_COPIED);
|
|
4487
4483
|
const [addShareLinkCode, { loading: isSaving }] = $e(ADD_SHARE_LINK_CODE);
|
|
@@ -4585,7 +4581,10 @@ function useShareLink(props) {
|
|
|
4585
4581
|
}
|
|
4586
4582
|
async function onSave() {
|
|
4587
4583
|
var _a, _b;
|
|
4588
|
-
if (!editValue ||
|
|
4584
|
+
if (!editValue ||
|
|
4585
|
+
editValue.length < MIN_CHARACTERS ||
|
|
4586
|
+
validationError ||
|
|
4587
|
+
isValidating)
|
|
4589
4588
|
return;
|
|
4590
4589
|
try {
|
|
4591
4590
|
await addShareLinkCode({
|
|
@@ -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-25647ca5.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-25647ca5.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';
|