@saasquatch/mint-components 2.3.0 → 2.3.1
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-05c6968d.js → ShadowViewAddon-331ac9e4.js} +5 -3
- package/dist/cjs/sqm-big-stat_47.cjs.entry.js +3 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +3 -3
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +2 -2
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +4 -2
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +2 -2
- package/dist/collection/components/sqm-share-link/useShareLink.js +1 -1
- package/dist/esm/{ShadowViewAddon-543f0fef.js → ShadowViewAddon-ae0cd8b9.js} +5 -3
- package/dist/esm/sqm-big-stat_47.entry.js +3 -3
- package/dist/esm/sqm-stencilbook.entry.js +3 -3
- package/dist/esm-es5/{ShadowViewAddon-543f0fef.js → ShadowViewAddon-ae0cd8b9.js} +1 -1
- package/dist/esm-es5/sqm-big-stat_47.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-fa477f5f.system.entry.js → p-1f68a3e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-92e81c72.js → p-3d2fe16b.js} +2 -2
- package/dist/mint-components/{p-3e7fb8a7.system.js → p-87f119f0.system.js} +1 -1
- package/dist/mint-components/{p-b1536972.entry.js → p-b1dcabb0.entry.js} +2 -2
- package/dist/mint-components/p-bfb00685.system.js +1 -1
- package/dist/mint-components/{p-b0d49a64.system.entry.js → p-ede41e5e.system.entry.js} +1 -1
- package/dist/mint-components/{p-76ad156b.entry.js → p-f77b89cb.entry.js} +2 -2
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
|
@@ -4292,6 +4292,8 @@ function ShareLinkView(props) {
|
|
|
4292
4292
|
lineHeight: "var(--sl-input-height-medium)",
|
|
4293
4293
|
},
|
|
4294
4294
|
EditInput: {
|
|
4295
|
+
maxWidth: "260px",
|
|
4296
|
+
width: "100%",
|
|
4295
4297
|
"&::part(base)": {
|
|
4296
4298
|
border: "none",
|
|
4297
4299
|
borderRadius: "0",
|
|
@@ -4358,7 +4360,7 @@ function ShareLinkView(props) {
|
|
|
4358
4360
|
const sheet = JSS.createStyleSheet(style);
|
|
4359
4361
|
const styleString = sheet.toString();
|
|
4360
4362
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
4361
|
-
const showCharactersRemaining = charactersRemaining <=
|
|
4363
|
+
const showCharactersRemaining = charactersRemaining <= 29;
|
|
4362
4364
|
const editLimitMessage = global.intl.formatMessage({
|
|
4363
4365
|
id: "editLimitText",
|
|
4364
4366
|
defaultMessage: editLimitText,
|
|
@@ -4379,7 +4381,7 @@ function ShareLinkView(props) {
|
|
|
4379
4381
|
index.h("p", { class: sheet.classes.HelperText },
|
|
4380
4382
|
editLimitMessage,
|
|
4381
4383
|
" ",
|
|
4382
|
-
charactersRemaining >
|
|
4384
|
+
charactersRemaining > 27 && minCharactersText,
|
|
4383
4385
|
showCharactersRemaining &&
|
|
4384
4386
|
` ${global.intl.formatMessage({
|
|
4385
4387
|
id: "charactersRemainingText",
|
|
@@ -4418,7 +4420,7 @@ function ShareLinkView(props) {
|
|
|
4418
4420
|
}
|
|
4419
4421
|
|
|
4420
4422
|
const MAX_EDITS = 5;
|
|
4421
|
-
const CHARACTER_LIMIT =
|
|
4423
|
+
const CHARACTER_LIMIT = 30;
|
|
4422
4424
|
const MIN_CHARACTERS = 3;
|
|
4423
4425
|
const MessageLinkQuery$1 = index_module.dist.gql `
|
|
4424
4426
|
query ($programId: ID) {
|
|
@@ -29,7 +29,7 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-239
|
|
|
29
29
|
const useLeadFormState = require('./useLeadFormState-bf49984b.js');
|
|
30
30
|
const utilities = require('./utilities-fcdb9504.js');
|
|
31
31
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-331ac9e4.js');
|
|
33
33
|
require('./sqm-portal-container-view-757f921b.js');
|
|
34
34
|
const data = require('./data-89ac73dd.js');
|
|
35
35
|
const keys = require('./keys-5a2c9ed2.js');
|
|
@@ -6369,9 +6369,9 @@ function useDemoShareLink(props) {
|
|
|
6369
6369
|
validationError: null,
|
|
6370
6370
|
isValidating: false,
|
|
6371
6371
|
isSaving: false,
|
|
6372
|
-
characterLimit:
|
|
6372
|
+
characterLimit: 30,
|
|
6373
6373
|
minCharacters: 3,
|
|
6374
|
-
charactersRemaining:
|
|
6374
|
+
charactersRemaining: 30 - editValue.length,
|
|
6375
6375
|
editLimitText: props.editLimitText,
|
|
6376
6376
|
editLimitReachedText: props.editLimitReachedText,
|
|
6377
6377
|
supportLinkText: props.supportLinkText,
|
|
@@ -35,7 +35,7 @@ require('./utilities-fcdb9504.js');
|
|
|
35
35
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-a767b044.js');
|
|
36
36
|
require('./ErrorView-ee7b0f36.js');
|
|
37
37
|
const sqmQrCodeView = require('./sqm-qr-code-view-1f2daa76.js');
|
|
38
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
38
|
+
const ShadowViewAddon = require('./ShadowViewAddon-331ac9e4.js');
|
|
39
39
|
const sqmPortalContainerView = require('./sqm-portal-container-view-757f921b.js');
|
|
40
40
|
const sqmUserInfoFormView = require('./sqm-user-info-form-view-c5f9b79b.js');
|
|
41
41
|
const sqmLeadInputFieldView = require('./sqm-lead-input-field-view-88de1b78.js');
|
|
@@ -14291,9 +14291,9 @@ const defaultCustomizeProps = {
|
|
|
14291
14291
|
validationError: null,
|
|
14292
14292
|
isValidating: false,
|
|
14293
14293
|
isSaving: false,
|
|
14294
|
-
characterLimit:
|
|
14294
|
+
characterLimit: 30,
|
|
14295
14295
|
minCharacters: 3,
|
|
14296
|
-
charactersRemaining:
|
|
14296
|
+
charactersRemaining: 30,
|
|
14297
14297
|
editLimitText: "You can edit your link up to 5 times.",
|
|
14298
14298
|
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
14299
14299
|
supportLinkText: "Support",
|
|
@@ -119,9 +119,9 @@ const defaultCustomizeProps = {
|
|
|
119
119
|
validationError: null,
|
|
120
120
|
isValidating: false,
|
|
121
121
|
isSaving: false,
|
|
122
|
-
characterLimit:
|
|
122
|
+
characterLimit: 30,
|
|
123
123
|
minCharacters: 3,
|
|
124
|
-
charactersRemaining:
|
|
124
|
+
charactersRemaining: 30,
|
|
125
125
|
editLimitText: "You can edit your link up to 5 times.",
|
|
126
126
|
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
127
127
|
supportLinkText: "Support",
|
|
@@ -66,6 +66,8 @@ export function ShareLinkView(props) {
|
|
|
66
66
|
lineHeight: "var(--sl-input-height-medium)",
|
|
67
67
|
},
|
|
68
68
|
EditInput: {
|
|
69
|
+
maxWidth: "260px",
|
|
70
|
+
width: "100%",
|
|
69
71
|
"&::part(base)": {
|
|
70
72
|
border: "none",
|
|
71
73
|
borderRadius: "0",
|
|
@@ -132,7 +134,7 @@ export function ShareLinkView(props) {
|
|
|
132
134
|
const sheet = createStyleSheet(style);
|
|
133
135
|
const styleString = sheet.toString();
|
|
134
136
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
135
|
-
const showCharactersRemaining = charactersRemaining <=
|
|
137
|
+
const showCharactersRemaining = charactersRemaining <= 29;
|
|
136
138
|
const editLimitMessage = intl.formatMessage({
|
|
137
139
|
id: "editLimitText",
|
|
138
140
|
defaultMessage: editLimitText,
|
|
@@ -153,7 +155,7 @@ export function ShareLinkView(props) {
|
|
|
153
155
|
h("p", { class: sheet.classes.HelperText },
|
|
154
156
|
editLimitMessage,
|
|
155
157
|
" ",
|
|
156
|
-
charactersRemaining >
|
|
158
|
+
charactersRemaining > 27 && minCharactersText,
|
|
157
159
|
showCharactersRemaining &&
|
|
158
160
|
` ${intl.formatMessage({
|
|
159
161
|
id: "charactersRemainingText",
|
|
@@ -1285,9 +1285,9 @@ function useDemoShareLink(props) {
|
|
|
1285
1285
|
validationError: null,
|
|
1286
1286
|
isValidating: false,
|
|
1287
1287
|
isSaving: false,
|
|
1288
|
-
characterLimit:
|
|
1288
|
+
characterLimit: 30,
|
|
1289
1289
|
minCharacters: 3,
|
|
1290
|
-
charactersRemaining:
|
|
1290
|
+
charactersRemaining: 30 - editValue.length,
|
|
1291
1291
|
editLimitText: props.editLimitText,
|
|
1292
1292
|
editLimitReachedText: props.editLimitReachedText,
|
|
1293
1293
|
supportLinkText: props.supportLinkText,
|
|
@@ -3,7 +3,7 @@ import { useRef, useState } from "@saasquatch/universal-hooks";
|
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
import { REFERRAL_CODES_NAMESPACE, SET_CODE_COPIED, } from "../sqm-referral-codes/useReferralCodes";
|
|
5
5
|
const MAX_EDITS = 5;
|
|
6
|
-
const CHARACTER_LIMIT =
|
|
6
|
+
const CHARACTER_LIMIT = 30;
|
|
7
7
|
const MIN_CHARACTERS = 3;
|
|
8
8
|
const MessageLinkQuery = gql `
|
|
9
9
|
query ($programId: ID) {
|
|
@@ -4290,6 +4290,8 @@ function ShareLinkView(props) {
|
|
|
4290
4290
|
lineHeight: "var(--sl-input-height-medium)",
|
|
4291
4291
|
},
|
|
4292
4292
|
EditInput: {
|
|
4293
|
+
maxWidth: "260px",
|
|
4294
|
+
width: "100%",
|
|
4293
4295
|
"&::part(base)": {
|
|
4294
4296
|
border: "none",
|
|
4295
4297
|
borderRadius: "0",
|
|
@@ -4356,7 +4358,7 @@ function ShareLinkView(props) {
|
|
|
4356
4358
|
const sheet = createStyleSheet(style);
|
|
4357
4359
|
const styleString = sheet.toString();
|
|
4358
4360
|
const errorMessageType = (validationError === null || validationError === void 0 ? void 0 : validationError.code) === "EXISTING_CODE_CONFLICT" ? "info" : "warning";
|
|
4359
|
-
const showCharactersRemaining = charactersRemaining <=
|
|
4361
|
+
const showCharactersRemaining = charactersRemaining <= 29;
|
|
4360
4362
|
const editLimitMessage = intl.formatMessage({
|
|
4361
4363
|
id: "editLimitText",
|
|
4362
4364
|
defaultMessage: editLimitText,
|
|
@@ -4377,7 +4379,7 @@ function ShareLinkView(props) {
|
|
|
4377
4379
|
h("p", { class: sheet.classes.HelperText },
|
|
4378
4380
|
editLimitMessage,
|
|
4379
4381
|
" ",
|
|
4380
|
-
charactersRemaining >
|
|
4382
|
+
charactersRemaining > 27 && minCharactersText,
|
|
4381
4383
|
showCharactersRemaining &&
|
|
4382
4384
|
` ${intl.formatMessage({
|
|
4383
4385
|
id: "charactersRemainingText",
|
|
@@ -4416,7 +4418,7 @@ function ShareLinkView(props) {
|
|
|
4416
4418
|
}
|
|
4417
4419
|
|
|
4418
4420
|
const MAX_EDITS = 5;
|
|
4419
|
-
const CHARACTER_LIMIT =
|
|
4421
|
+
const CHARACTER_LIMIT = 30;
|
|
4420
4422
|
const MIN_CHARACTERS = 3;
|
|
4421
4423
|
const MessageLinkQuery$1 = dist.gql `
|
|
4422
4424
|
query ($programId: ID) {
|
|
@@ -25,7 +25,7 @@ import { u as useInstantAccessRegistration } from './useInstantAccessRegistratio
|
|
|
25
25
|
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-6214b2d9.js';
|
|
26
26
|
import { i as isEmpty } from './utilities-cbd8f2eb.js';
|
|
27
27
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
28
|
-
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-
|
|
28
|
+
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-ae0cd8b9.js';
|
|
29
29
|
import './sqm-portal-container-view-200c9df8.js';
|
|
30
30
|
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, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-8698cbc6.js';
|
|
31
31
|
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, b as SHOW_PARTNER_MODAL_NAMESPACE, P as PARTNER_CREATED_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-1054056a.js';
|
|
@@ -6365,9 +6365,9 @@ function useDemoShareLink(props) {
|
|
|
6365
6365
|
validationError: null,
|
|
6366
6366
|
isValidating: false,
|
|
6367
6367
|
isSaving: false,
|
|
6368
|
-
characterLimit:
|
|
6368
|
+
characterLimit: 30,
|
|
6369
6369
|
minCharacters: 3,
|
|
6370
|
-
charactersRemaining:
|
|
6370
|
+
charactersRemaining: 30 - editValue.length,
|
|
6371
6371
|
editLimitText: props.editLimitText,
|
|
6372
6372
|
editLimitReachedText: props.editLimitReachedText,
|
|
6373
6373
|
supportLinkText: props.supportLinkText,
|
|
@@ -31,7 +31,7 @@ import './utilities-cbd8f2eb.js';
|
|
|
31
31
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-f84c04cf.js';
|
|
32
32
|
import './ErrorView-74cb3af8.js';
|
|
33
33
|
import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
|
|
34
|
-
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-
|
|
34
|
+
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-ae0cd8b9.js';
|
|
35
35
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-200c9df8.js';
|
|
36
36
|
import { I as InvoiceTableView, T as TaxAndCashDashboardView$1, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-ceb3917a.js';
|
|
37
37
|
import { L as LeadInputFieldView } from './sqm-lead-input-field-view-671ff96f.js';
|
|
@@ -14287,9 +14287,9 @@ const defaultCustomizeProps = {
|
|
|
14287
14287
|
validationError: null,
|
|
14288
14288
|
isValidating: false,
|
|
14289
14289
|
isSaving: false,
|
|
14290
|
-
characterLimit:
|
|
14290
|
+
characterLimit: 30,
|
|
14291
14291
|
minCharacters: 3,
|
|
14292
|
-
charactersRemaining:
|
|
14292
|
+
charactersRemaining: 30,
|
|
14293
14293
|
editLimitText: "You can edit your link up to 5 times.",
|
|
14294
14294
|
editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
|
|
14295
14295
|
supportLinkText: "Support",
|