@saasquatch/mint-components 1.11.1-4 → 1.11.1-6
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-cfda0bfa.js → ShadowViewAddon-75ebafd6.js} +1 -1
- package/dist/cjs/{copy-text-view-5f908186.js → copy-text-view-ec6055a6.js} +11 -3
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-pagination/sqm-pagination.js +1 -0
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +11 -3
- package/dist/esm/{ShadowViewAddon-95520b03.js → ShadowViewAddon-69360ca6.js} +1 -1
- package/dist/esm/{copy-text-view-73cd7a82.js → copy-text-view-730ad677.js} +11 -3
- package/dist/esm/sqm-big-stat_38.entry.js +2 -2
- package/dist/esm/sqm-pagination_3.entry.js +2 -1
- package/dist/esm/sqm-stencilbook.entry.js +2 -2
- package/dist/esm-es5/{ShadowViewAddon-95520b03.js → ShadowViewAddon-69360ca6.js} +1 -1
- package/dist/esm-es5/copy-text-view-730ad677.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-4068bd43.system.js → p-0fcec6ab.system.js} +1 -1
- package/dist/mint-components/p-2d98dd8b.js +29 -0
- package/dist/mint-components/{p-1a02cebe.entry.js → p-3d90aa82.entry.js} +3 -3
- package/dist/mint-components/p-5d1791f2.system.entry.js +1 -0
- package/dist/mint-components/p-5fc8d87c.system.js +1 -1
- package/dist/mint-components/{p-aed69f9e.system.entry.js → p-6790974f.system.entry.js} +1 -1
- package/dist/mint-components/{p-dbc0db45.js → p-969075f6.js} +1 -1
- package/dist/mint-components/{p-452b562d.entry.js → p-aa933e70.entry.js} +1 -1
- package/dist/mint-components/{p-64fcb97f.system.entry.js → p-c02ffc85.system.entry.js} +1 -1
- package/dist/mint-components/p-e78d511b.system.js +1 -0
- package/dist/mint-components/{p-4f815653.entry.js → p-f7c1ebb1.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/copy-text-view-73cd7a82.js +0 -1
- package/dist/mint-components/p-753a19e2.js +0 -25
- package/dist/mint-components/p-f26580a1.system.entry.js +0 -1
- package/dist/mint-components/p-f2a0658d.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-ec6055a6.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');
|
|
@@ -10,7 +10,11 @@ const GET_REFERRAL_CODES = index_module.dist.gql `
|
|
|
10
10
|
query getCodes($limit: Int!, $offset: Int!) {
|
|
11
11
|
viewer {
|
|
12
12
|
... on User {
|
|
13
|
-
referralCodeList(
|
|
13
|
+
referralCodeList(
|
|
14
|
+
limit: $limit
|
|
15
|
+
offset: $offset
|
|
16
|
+
filter: { fuelTank_eq: true }
|
|
17
|
+
) {
|
|
14
18
|
data {
|
|
15
19
|
code
|
|
16
20
|
dateUsed
|
|
@@ -37,7 +41,11 @@ mutation test {}
|
|
|
37
41
|
function useReferralCodes(props) {
|
|
38
42
|
const user = index_module.Q();
|
|
39
43
|
console.log({ props });
|
|
40
|
-
const { envelope: referralData, states, callbacks, } = index_module.kn(GET_REFERRAL_CODES, (data) => {
|
|
44
|
+
const { envelope: referralData, states, callbacks, } = index_module.kn(GET_REFERRAL_CODES, (data) => {
|
|
45
|
+
var _a;
|
|
46
|
+
console.log({ queryData: data });
|
|
47
|
+
return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referralCodeList;
|
|
48
|
+
}, {
|
|
41
49
|
limit: 1,
|
|
42
50
|
offset: 0,
|
|
43
51
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -81,7 +89,7 @@ function useReferralCodes(props) {
|
|
|
81
89
|
}, [referralData]);
|
|
82
90
|
stencilHooks_module.useEffect(() => {
|
|
83
91
|
setPaginationContext({ states, callbacks });
|
|
84
|
-
}, [states]);
|
|
92
|
+
}, [states.currentPage]);
|
|
85
93
|
console.log({ referralData, states });
|
|
86
94
|
return {
|
|
87
95
|
states: {
|
|
@@ -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-ec6055a6.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-75ebafd6.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-ec6055a6.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
|
|
@@ -60,6 +60,7 @@ const Pagination = class {
|
|
|
60
60
|
const hookProps = index_module.isDemo()
|
|
61
61
|
? useDemoPagination(utils.getProps(this))
|
|
62
62
|
: usePagination();
|
|
63
|
+
console.log("pagination", { hookProps });
|
|
63
64
|
const props = {
|
|
64
65
|
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
65
66
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
@@ -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-ec6055a6.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-75ebafd6.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
|
|
|
@@ -23,6 +23,7 @@ export class Pagination {
|
|
|
23
23
|
const hookProps = isDemo()
|
|
24
24
|
? useDemoPagination(getProps(this))
|
|
25
25
|
: usePagination();
|
|
26
|
+
console.log("pagination", { hookProps });
|
|
26
27
|
const props = {
|
|
27
28
|
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
28
29
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
@@ -5,7 +5,11 @@ const GET_REFERRAL_CODES = gql `
|
|
|
5
5
|
query getCodes($limit: Int!, $offset: Int!) {
|
|
6
6
|
viewer {
|
|
7
7
|
... on User {
|
|
8
|
-
referralCodeList(
|
|
8
|
+
referralCodeList(
|
|
9
|
+
limit: $limit
|
|
10
|
+
offset: $offset
|
|
11
|
+
filter: { fuelTank_eq: true }
|
|
12
|
+
) {
|
|
9
13
|
data {
|
|
10
14
|
code
|
|
11
15
|
dateUsed
|
|
@@ -32,7 +36,11 @@ mutation test {}
|
|
|
32
36
|
export function useReferralCodes(props) {
|
|
33
37
|
const user = useUserIdentity();
|
|
34
38
|
console.log({ props });
|
|
35
|
-
const { envelope: referralData, states, callbacks, } = usePaginatedQuery(GET_REFERRAL_CODES, (data) => {
|
|
39
|
+
const { envelope: referralData, states, callbacks, } = usePaginatedQuery(GET_REFERRAL_CODES, (data) => {
|
|
40
|
+
var _a;
|
|
41
|
+
console.log({ queryData: data });
|
|
42
|
+
return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referralCodeList;
|
|
43
|
+
}, {
|
|
36
44
|
limit: 1,
|
|
37
45
|
offset: 0,
|
|
38
46
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -76,7 +84,7 @@ export function useReferralCodes(props) {
|
|
|
76
84
|
}, [referralData]);
|
|
77
85
|
useEffect(() => {
|
|
78
86
|
setPaginationContext({ states, callbacks });
|
|
79
|
-
}, [states]);
|
|
87
|
+
}, [states.currentPage]);
|
|
80
88
|
console.log({ referralData, states });
|
|
81
89
|
return {
|
|
82
90
|
states: {
|
|
@@ -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_USED, C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_USED, C as CopyTextView } from './copy-text-view-730ad677.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';
|
|
@@ -8,7 +8,11 @@ const GET_REFERRAL_CODES = dist.gql `
|
|
|
8
8
|
query getCodes($limit: Int!, $offset: Int!) {
|
|
9
9
|
viewer {
|
|
10
10
|
... on User {
|
|
11
|
-
referralCodeList(
|
|
11
|
+
referralCodeList(
|
|
12
|
+
limit: $limit
|
|
13
|
+
offset: $offset
|
|
14
|
+
filter: { fuelTank_eq: true }
|
|
15
|
+
) {
|
|
12
16
|
data {
|
|
13
17
|
code
|
|
14
18
|
dateUsed
|
|
@@ -35,7 +39,11 @@ mutation test {}
|
|
|
35
39
|
function useReferralCodes(props) {
|
|
36
40
|
const user = Q();
|
|
37
41
|
console.log({ props });
|
|
38
|
-
const { envelope: referralData, states, callbacks, } = kn(GET_REFERRAL_CODES, (data) => {
|
|
42
|
+
const { envelope: referralData, states, callbacks, } = kn(GET_REFERRAL_CODES, (data) => {
|
|
43
|
+
var _a;
|
|
44
|
+
console.log({ queryData: data });
|
|
45
|
+
return (_a = data === null || data === void 0 ? void 0 : data.viewer) === null || _a === void 0 ? void 0 : _a.referralCodeList;
|
|
46
|
+
}, {
|
|
39
47
|
limit: 1,
|
|
40
48
|
offset: 0,
|
|
41
49
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -79,7 +87,7 @@ function useReferralCodes(props) {
|
|
|
79
87
|
}, [referralData]);
|
|
80
88
|
useEffect(() => {
|
|
81
89
|
setPaginationContext({ states, callbacks });
|
|
82
|
-
}, [states]);
|
|
90
|
+
}, [states.currentPage]);
|
|
83
91
|
console.log({ referralData, states });
|
|
84
92
|
return {
|
|
85
93
|
states: {
|
|
@@ -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-730ad677.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-69360ca6.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_USED, 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_USED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-730ad677.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
|
|
@@ -56,6 +56,7 @@ const Pagination = class {
|
|
|
56
56
|
const hookProps = isDemo()
|
|
57
57
|
? useDemoPagination(getProps(this))
|
|
58
58
|
: usePagination();
|
|
59
|
+
console.log("pagination", { hookProps });
|
|
59
60
|
const props = {
|
|
60
61
|
currentPage: (_a = hookProps.states) === null || _a === void 0 ? void 0 : _a.currentPage,
|
|
61
62
|
totalPages: (_b = hookProps.states) === null || _b === void 0 ? void 0 : _b.pageCount,
|
|
@@ -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-730ad677.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-69360ca6.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
|
|