@saasquatch/mint-components 1.11.1-14 → 1.11.1-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-15ed0bcf.js → ShadowViewAddon-3e6c5c29.js} +7 -5
- package/dist/cjs/{copy-text-view-0a1040b2.js → copy-text-view-c1e79e2c.js} +5 -1
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +4 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +3 -2
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +5 -1
- package/dist/collection/components/sqm-share-button/useShareButton.js +3 -2
- package/dist/collection/components/sqm-share-link/useShareLink.js +3 -2
- package/dist/esm/{ShadowViewAddon-66ec2e09.js → ShadowViewAddon-ee414299.js} +7 -5
- package/dist/esm/{copy-text-view-5e472643.js → copy-text-view-b30c4966.js} +5 -1
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +4 -3
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/ShadowViewAddon-ee414299.js +1 -0
- package/dist/esm-es5/copy-text-view-b30c4966.js +1 -0
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.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-018cc95e.js +54 -0
- package/dist/mint-components/p-261944f3.system.js +1 -0
- package/dist/mint-components/{p-96d4224a.entry.js → p-27431182.entry.js} +2 -2
- package/dist/mint-components/{p-f1497827.entry.js → p-35f8d75b.entry.js} +1 -1
- package/dist/mint-components/p-5fc8d87c.system.js +1 -1
- package/dist/mint-components/{p-65a376c7.entry.js → p-60d80d37.entry.js} +1 -1
- package/dist/mint-components/{p-576ce7fa.system.entry.js → p-a8cfd480.system.entry.js} +1 -1
- package/dist/mint-components/{p-d410a104.system.entry.js → p-aef3b495.system.entry.js} +1 -1
- package/dist/mint-components/{p-99e0b3ad.js → p-c43ed243.js} +3 -3
- package/dist/mint-components/p-c5ee3214.system.entry.js +1 -0
- package/dist/mint-components/p-fbb0f8a5.system.js +1 -0
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-66ec2e09.js +0 -1
- package/dist/esm-es5/copy-text-view-5e472643.js +0 -1
- package/dist/mint-components/p-19192ff3.js +0 -52
- package/dist/mint-components/p-9c0629f7.system.js +0 -1
- package/dist/mint-components/p-b260686f.system.entry.js +0 -1
- package/dist/mint-components/p-d52a3fe1.system.js +0 -1
|
@@ -6,7 +6,7 @@ const global = require('./global-02e50f09.js');
|
|
|
6
6
|
const index_module = require('./index.module-df530553.js');
|
|
7
7
|
const utils = require('./utils-6847bc06.js');
|
|
8
8
|
const JSS = require('./JSS-8503a151.js');
|
|
9
|
-
const copyTextView = require('./copy-text-view-
|
|
9
|
+
const copyTextView = require('./copy-text-view-c1e79e2c.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const mixins = require('./mixins-fe9d4112.js');
|
|
12
12
|
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
@@ -386,9 +386,10 @@ function useShareLink(props) {
|
|
|
386
386
|
// Shown during loading
|
|
387
387
|
"...";
|
|
388
388
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
389
|
-
function onClick() {
|
|
389
|
+
async function onClick() {
|
|
390
390
|
if (contextData) {
|
|
391
|
-
setCopied(contextData.referralCode);
|
|
391
|
+
await setCopied(contextData.referralCode);
|
|
392
|
+
await contextData.refetch();
|
|
392
393
|
}
|
|
393
394
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
394
395
|
// Only if called from a user-initiated event
|
|
@@ -482,10 +483,11 @@ function useShareButton(props) {
|
|
|
482
483
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
483
484
|
window.orientation === undefined) ||
|
|
484
485
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
485
|
-
function onClick() {
|
|
486
|
+
async function onClick() {
|
|
486
487
|
var _a, _b, _c, _d;
|
|
487
488
|
if (overrideData) {
|
|
488
|
-
setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
489
|
+
await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
490
|
+
await overrideData.refetch();
|
|
489
491
|
}
|
|
490
492
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
491
493
|
environment.type === "SquatchAndroid") {
|
|
@@ -57,7 +57,9 @@ const REFERRAL_CODES_PAGINATION_CONTEXT = "sq:referral-codes-pagination";
|
|
|
57
57
|
const SET_CODE_COPIED = index_module.dist.gql `
|
|
58
58
|
mutation markReferralCodeCopied($referralCode: String!) {
|
|
59
59
|
markReferralCodeCopied(referralCode: $referralCode) {
|
|
60
|
-
referralCode
|
|
60
|
+
referralCode {
|
|
61
|
+
dateCopied
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
`;
|
|
@@ -80,6 +82,7 @@ function useReferralCodes(props) {
|
|
|
80
82
|
const [referralCodesContext, setReferralCodesContext] = index_module.Cn({
|
|
81
83
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
82
84
|
initialValue: {
|
|
85
|
+
refetch: callbacks.refetch,
|
|
83
86
|
loading: true,
|
|
84
87
|
referralCode: "",
|
|
85
88
|
shareLink: "",
|
|
@@ -100,6 +103,7 @@ function useReferralCodes(props) {
|
|
|
100
103
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
101
104
|
const data = referralData.data[0];
|
|
102
105
|
setReferralCodesContext({
|
|
106
|
+
refetch: callbacks.refetch,
|
|
103
107
|
referralCode: data.code,
|
|
104
108
|
isCopied: !!data.dateCopied,
|
|
105
109
|
isUsed: !!data.dateUsed,
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-df530553.js');
|
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const copyTextView = require('./copy-text-view-
|
|
12
|
+
const copyTextView = require('./copy-text-view-c1e79e2c.js');
|
|
13
13
|
const cjs = require('./cjs-1066ec21.js');
|
|
14
14
|
require('./mixins-fe9d4112.js');
|
|
15
15
|
const reRender = require('./re-render-1976e05e.js');
|
|
@@ -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-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-3e6c5c29.js');
|
|
24
24
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
|
7
7
|
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
|
-
const copyTextView = require('./copy-text-view-
|
|
10
|
+
const copyTextView = require('./copy-text-view-c1e79e2c.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
|
|
@@ -116,9 +116,10 @@ function useReferralCode(props) {
|
|
|
116
116
|
// Shown during loading
|
|
117
117
|
"...";
|
|
118
118
|
const [open, setOpen] = stencilHooks_module.useState(false);
|
|
119
|
-
function onClick() {
|
|
119
|
+
async function onClick() {
|
|
120
120
|
if (contextData) {
|
|
121
|
-
setCopied(contextData.referralCode);
|
|
121
|
+
await setCopied(contextData.referralCode);
|
|
122
|
+
await contextData.refetch();
|
|
122
123
|
}
|
|
123
124
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
124
125
|
// Only if called from a user-initiated event
|
|
@@ -8,7 +8,7 @@ require('./global-02e50f09.js');
|
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
require('./utils-6847bc06.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
|
-
const copyTextView = require('./copy-text-view-
|
|
11
|
+
const copyTextView = require('./copy-text-view-c1e79e2c.js');
|
|
12
12
|
require('./cjs-1066ec21.js');
|
|
13
13
|
require('./mixins-fe9d4112.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-a3f48e15.js');
|
|
@@ -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-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-3e6c5c29.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
|
|
|
@@ -29,9 +29,10 @@ export function useReferralCode(props) {
|
|
|
29
29
|
// Shown during loading
|
|
30
30
|
"...";
|
|
31
31
|
const [open, setOpen] = useState(false);
|
|
32
|
-
function onClick() {
|
|
32
|
+
async function onClick() {
|
|
33
33
|
if (contextData) {
|
|
34
|
-
setCopied(contextData.referralCode);
|
|
34
|
+
await setCopied(contextData.referralCode);
|
|
35
|
+
await contextData.refetch();
|
|
35
36
|
}
|
|
36
37
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
37
38
|
// Only if called from a user-initiated event
|
|
@@ -52,7 +52,9 @@ export const REFERRAL_CODES_PAGINATION_CONTEXT = "sq:referral-codes-pagination";
|
|
|
52
52
|
export const SET_CODE_COPIED = gql `
|
|
53
53
|
mutation markReferralCodeCopied($referralCode: String!) {
|
|
54
54
|
markReferralCodeCopied(referralCode: $referralCode) {
|
|
55
|
-
referralCode
|
|
55
|
+
referralCode {
|
|
56
|
+
dateCopied
|
|
57
|
+
}
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
`;
|
|
@@ -75,6 +77,7 @@ export function useReferralCodes(props) {
|
|
|
75
77
|
const [referralCodesContext, setReferralCodesContext] = useParentState({
|
|
76
78
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
77
79
|
initialValue: {
|
|
80
|
+
refetch: callbacks.refetch,
|
|
78
81
|
loading: true,
|
|
79
82
|
referralCode: "",
|
|
80
83
|
shareLink: "",
|
|
@@ -95,6 +98,7 @@ export function useReferralCodes(props) {
|
|
|
95
98
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
96
99
|
const data = referralData.data[0];
|
|
97
100
|
setReferralCodesContext({
|
|
101
|
+
refetch: callbacks.refetch,
|
|
98
102
|
referralCode: data.code,
|
|
99
103
|
isCopied: !!data.dateCopied,
|
|
100
104
|
isUsed: !!data.dateUsed,
|
|
@@ -73,10 +73,11 @@ export function useShareButton(props) {
|
|
|
73
73
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
74
74
|
window.orientation === undefined) ||
|
|
75
75
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
76
|
-
function onClick() {
|
|
76
|
+
async function onClick() {
|
|
77
77
|
var _a, _b, _c, _d;
|
|
78
78
|
if (overrideData) {
|
|
79
|
-
setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
79
|
+
await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
80
|
+
await overrideData.refetch();
|
|
80
81
|
}
|
|
81
82
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
82
83
|
environment.type === "SquatchAndroid") {
|
|
@@ -33,9 +33,10 @@ export function useShareLink(props) {
|
|
|
33
33
|
// Shown during loading
|
|
34
34
|
"...";
|
|
35
35
|
const [open, setOpen] = useState(false);
|
|
36
|
-
function onClick() {
|
|
36
|
+
async function onClick() {
|
|
37
37
|
if (contextData) {
|
|
38
|
-
setCopied(contextData.referralCode);
|
|
38
|
+
await setCopied(contextData.referralCode);
|
|
39
|
+
await contextData.refetch();
|
|
39
40
|
}
|
|
40
41
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
41
42
|
// Only if called from a user-initiated event
|
|
@@ -4,7 +4,7 @@ import { i as intl } from './global-b89b6edc.js';
|
|
|
4
4
|
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-f122af7b.js';
|
|
5
5
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
7
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-b30c4966.js';
|
|
8
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
10
10
|
import { u as useChildElements } from './useChildElements-37daf533.js';
|
|
@@ -384,9 +384,10 @@ function useShareLink(props) {
|
|
|
384
384
|
// Shown during loading
|
|
385
385
|
"...";
|
|
386
386
|
const [open, setOpen] = useState(false);
|
|
387
|
-
function onClick() {
|
|
387
|
+
async function onClick() {
|
|
388
388
|
if (contextData) {
|
|
389
|
-
setCopied(contextData.referralCode);
|
|
389
|
+
await setCopied(contextData.referralCode);
|
|
390
|
+
await contextData.refetch();
|
|
390
391
|
}
|
|
391
392
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
392
393
|
// Only if called from a user-initiated event
|
|
@@ -480,10 +481,11 @@ function useShareButton(props) {
|
|
|
480
481
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
481
482
|
window.orientation === undefined) ||
|
|
482
483
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
483
|
-
function onClick() {
|
|
484
|
+
async function onClick() {
|
|
484
485
|
var _a, _b, _c, _d;
|
|
485
486
|
if (overrideData) {
|
|
486
|
-
setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
487
|
+
await setCopied(overrideData === null || overrideData === void 0 ? void 0 : overrideData.referralCode);
|
|
488
|
+
await overrideData.refetch();
|
|
487
489
|
}
|
|
488
490
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
489
491
|
environment.type === "SquatchAndroid") {
|
|
@@ -55,7 +55,9 @@ const REFERRAL_CODES_PAGINATION_CONTEXT = "sq:referral-codes-pagination";
|
|
|
55
55
|
const SET_CODE_COPIED = dist.gql `
|
|
56
56
|
mutation markReferralCodeCopied($referralCode: String!) {
|
|
57
57
|
markReferralCodeCopied(referralCode: $referralCode) {
|
|
58
|
-
referralCode
|
|
58
|
+
referralCode {
|
|
59
|
+
dateCopied
|
|
60
|
+
}
|
|
59
61
|
}
|
|
60
62
|
}
|
|
61
63
|
`;
|
|
@@ -78,6 +80,7 @@ function useReferralCodes(props) {
|
|
|
78
80
|
const [referralCodesContext, setReferralCodesContext] = Cn({
|
|
79
81
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
80
82
|
initialValue: {
|
|
83
|
+
refetch: callbacks.refetch,
|
|
81
84
|
loading: true,
|
|
82
85
|
referralCode: "",
|
|
83
86
|
shareLink: "",
|
|
@@ -98,6 +101,7 @@ function useReferralCodes(props) {
|
|
|
98
101
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
99
102
|
const data = referralData.data[0];
|
|
100
103
|
setReferralCodesContext({
|
|
104
|
+
refetch: callbacks.refetch,
|
|
101
105
|
referralCode: data.code,
|
|
102
106
|
isCopied: !!data.dateCopied,
|
|
103
107
|
isUsed: !!data.dateUsed,
|
|
@@ -5,7 +5,7 @@ import { i as isDemo, _, d as dist, Q, H, $ as $e, y as yn, B, L, g as gn, e as
|
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
8
|
+
import { C as CopyTextView } from './copy-text-view-b30c4966.js';
|
|
9
9
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
10
10
|
import './mixins-f60a614c.js';
|
|
11
11
|
import { a as useRequestRerender } from './re-render-c64289f3.js';
|
|
@@ -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-
|
|
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';
|
|
20
20
|
import './sqm-portal-container-view-6c582684.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
@@ -3,7 +3,7 @@ import { n as h$1, k as useState } from './stencil-hooks.module-ac12ca1c.js';
|
|
|
3
3
|
import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-f122af7b.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
6
|
-
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-
|
|
6
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-b30c4966.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
|
|
@@ -112,9 +112,10 @@ function useReferralCode(props) {
|
|
|
112
112
|
// Shown during loading
|
|
113
113
|
"...";
|
|
114
114
|
const [open, setOpen] = useState(false);
|
|
115
|
-
function onClick() {
|
|
115
|
+
async function onClick() {
|
|
116
116
|
if (contextData) {
|
|
117
|
-
setCopied(contextData.referralCode);
|
|
117
|
+
await setCopied(contextData.referralCode);
|
|
118
|
+
await contextData.refetch();
|
|
118
119
|
}
|
|
119
120
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
120
121
|
// Only if called from a user-initiated event
|
|
@@ -4,7 +4,7 @@ import './global-b89b6edc.js';
|
|
|
4
4
|
import { e as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-f122af7b.js';
|
|
5
5
|
import './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { C as CopyTextView } from './copy-text-view-b30c4966.js';
|
|
8
8
|
import './cjs-bdfb4486.js';
|
|
9
9
|
import './mixins-f60a614c.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-bf154727.js';
|
|
@@ -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-
|
|
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';
|
|
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
|
|