@saasquatch/mint-components 2.1.8-3 → 2.1.8-5

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.
@@ -4387,7 +4387,7 @@ function ShareLinkView(props) {
4387
4387
  vanillaStyle$6),
4388
4388
  index.h(copyTextView.CopyTextView, Object.assign({}, copyTextViewProps)),
4389
4389
  showSuccess && index.h("p", { class: sheet.classes.SuccessText }, successMessage),
4390
- customizeUrl && (customizeDisabled ? (index.h("sl-tooltip", { content: customizeDisabledTooltip },
4390
+ customizeUrl && (customizeDisabled ? (index.h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
4391
4391
  index.h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (index.h("p", { class: limitReached
4392
4392
  ? sheet.classes.CustomizeLinkDisabled
4393
4393
  : sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel))),
@@ -4455,7 +4455,7 @@ const SHARE_LINK_EDIT_COUNT = index_module.dist.gql `
4455
4455
  query shareLinkEditCount($programId: ID) {
4456
4456
  viewer {
4457
4457
  ... on User {
4458
- shareLinkCodes(programId: $programId) {
4458
+ shareLinkCodes {
4459
4459
  totalCount
4460
4460
  }
4461
4461
  }
@@ -4493,7 +4493,7 @@ function useShareLink(props) {
4493
4493
  const [addShareLinkCode, { loading: isSaving }] = index_module.$e(ADD_SHARE_LINK_CODE);
4494
4494
  const { data: linkDomainData } = index_module.wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4495
4495
  // TODO: Wire up when backend query is ready
4496
- const { data: editCountData } = index_module.wn(SHARE_LINK_EDIT_COUNT, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4496
+ const { data: editCountData } = index_module.wn(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4497
4497
  const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
4498
4498
  // Shown during loading
4499
4499
  "...";
@@ -4559,7 +4559,7 @@ function useShareLink(props) {
4559
4559
  if (limitReached || customizeDisabled)
4560
4560
  return;
4561
4561
  setIsEditing(true);
4562
- setEditValue(parsePathSuffix(copyString));
4562
+ setEditValue(editCount === 0 ? "" : parsePathSuffix(copyString));
4563
4563
  setValidationError(null);
4564
4564
  }
4565
4565
  function onEditValueChange(value) {
@@ -4642,7 +4642,8 @@ function useShareLink(props) {
4642
4642
  editLimitText: props.editLimitText,
4643
4643
  editLimitReachedText: props.editLimitReachedText,
4644
4644
  supportLinkText: props.supportLinkText,
4645
- customizeDisabled,
4645
+ // customizeDisabled,
4646
+ customizeDisabled: false,
4646
4647
  customizeDisabledTooltip: props.customizeDisabledTooltip,
4647
4648
  onCustomizeClick,
4648
4649
  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-3384ddc4.js');
30
+ const ShadowViewAddon = require('./ShadowViewAddon-dfbc335a.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');
@@ -6264,7 +6264,7 @@ function useDemoShareLink(props) {
6264
6264
  isEditing,
6265
6265
  editValue,
6266
6266
  domainPrefix,
6267
- editsRemaining: 3,
6267
+ editsRemaining: 5,
6268
6268
  maxEdits: 5,
6269
6269
  limitReached: false,
6270
6270
  validationError: null,
@@ -6280,7 +6280,7 @@ function useDemoShareLink(props) {
6280
6280
  customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
6281
6281
  onCustomizeClick: () => {
6282
6282
  setIsEditing(true);
6283
- setEditValue("sharelink/abc");
6283
+ setEditValue("");
6284
6284
  },
6285
6285
  onEditValueChange: (value) => {
6286
6286
  setEditValue(value);
@@ -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-3384ddc4.js');
36
+ const ShadowViewAddon = require('./ShadowViewAddon-dfbc335a.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');
@@ -160,7 +160,7 @@ export function ShareLinkView(props) {
160
160
  vanillaStyle),
161
161
  h(CopyTextView, Object.assign({}, copyTextViewProps)),
162
162
  showSuccess && h("p", { class: sheet.classes.SuccessText }, successMessage),
163
- customizeUrl && (customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip },
163
+ customizeUrl && (customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
164
164
  h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("p", { class: limitReached
165
165
  ? sheet.classes.CustomizeLinkDisabled
166
166
  : sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel))),
@@ -901,7 +901,7 @@ function useDemoShareLink(props) {
901
901
  isEditing,
902
902
  editValue,
903
903
  domainPrefix,
904
- editsRemaining: 3,
904
+ editsRemaining: 5,
905
905
  maxEdits: 5,
906
906
  limitReached: false,
907
907
  validationError: null,
@@ -917,7 +917,7 @@ function useDemoShareLink(props) {
917
917
  customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
918
918
  onCustomizeClick: () => {
919
919
  setIsEditing(true);
920
- setEditValue("sharelink/abc");
920
+ setEditValue("");
921
921
  },
922
922
  onEditValueChange: (value) => {
923
923
  setEditValue(value);
@@ -58,7 +58,7 @@ const SHARE_LINK_EDIT_COUNT = gql `
58
58
  query shareLinkEditCount($programId: ID) {
59
59
  viewer {
60
60
  ... on User {
61
- shareLinkCodes(programId: $programId) {
61
+ shareLinkCodes {
62
62
  totalCount
63
63
  }
64
64
  }
@@ -96,7 +96,7 @@ export function useShareLink(props) {
96
96
  const [addShareLinkCode, { loading: isSaving }] = useMutation(ADD_SHARE_LINK_CODE);
97
97
  const { data: linkDomainData } = useQuery(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
98
98
  // TODO: Wire up when backend query is ready
99
- const { data: editCountData } = useQuery(SHARE_LINK_EDIT_COUNT, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
99
+ const { data: editCountData } = useQuery(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
100
100
  const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
101
101
  // Shown during loading
102
102
  "...";
@@ -162,7 +162,7 @@ export function useShareLink(props) {
162
162
  if (limitReached || customizeDisabled)
163
163
  return;
164
164
  setIsEditing(true);
165
- setEditValue(parsePathSuffix(copyString));
165
+ setEditValue(editCount === 0 ? "" : parsePathSuffix(copyString));
166
166
  setValidationError(null);
167
167
  }
168
168
  function onEditValueChange(value) {
@@ -245,7 +245,8 @@ export function useShareLink(props) {
245
245
  editLimitText: props.editLimitText,
246
246
  editLimitReachedText: props.editLimitReachedText,
247
247
  supportLinkText: props.supportLinkText,
248
- customizeDisabled,
248
+ // customizeDisabled,
249
+ customizeDisabled: false,
249
250
  customizeDisabledTooltip: props.customizeDisabledTooltip,
250
251
  onCustomizeClick,
251
252
  onEditValueChange,
@@ -4385,7 +4385,7 @@ function ShareLinkView(props) {
4385
4385
  vanillaStyle$6),
4386
4386
  h(CopyTextView, Object.assign({}, copyTextViewProps)),
4387
4387
  showSuccess && h("p", { class: sheet.classes.SuccessText }, successMessage),
4388
- customizeUrl && (customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip },
4388
+ customizeUrl && (customizeDisabled ? (h("sl-tooltip", { content: customizeDisabledTooltip, placement: "top", style: { display: "inline-block", width: "fit-content" } },
4389
4389
  h("p", { class: sheet.classes.CustomizeLinkDisabled }, customizeLinkLabel))) : (h("p", { class: limitReached
4390
4390
  ? sheet.classes.CustomizeLinkDisabled
4391
4391
  : sheet.classes.CustomizeLinkText, onClick: limitReached ? undefined : onCustomizeClick }, customizeLinkLabel))),
@@ -4453,7 +4453,7 @@ const SHARE_LINK_EDIT_COUNT = dist.gql `
4453
4453
  query shareLinkEditCount($programId: ID) {
4454
4454
  viewer {
4455
4455
  ... on User {
4456
- shareLinkCodes(programId: $programId) {
4456
+ shareLinkCodes {
4457
4457
  totalCount
4458
4458
  }
4459
4459
  }
@@ -4491,7 +4491,7 @@ function useShareLink(props) {
4491
4491
  const [addShareLinkCode, { loading: isSaving }] = $e(ADD_SHARE_LINK_CODE);
4492
4492
  const { data: linkDomainData } = wn(GET_LINK_DOMAIN, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4493
4493
  // TODO: Wire up when backend query is ready
4494
- const { data: editCountData } = wn(SHARE_LINK_EDIT_COUNT, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4494
+ const { data: editCountData } = wn(SHARE_LINK_EDIT_COUNT, {}, !(user === null || user === void 0 ? void 0 : user.jwt) || !props.customizeUrl);
4495
4495
  const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
4496
4496
  // Shown during loading
4497
4497
  "...";
@@ -4557,7 +4557,7 @@ function useShareLink(props) {
4557
4557
  if (limitReached || customizeDisabled)
4558
4558
  return;
4559
4559
  setIsEditing(true);
4560
- setEditValue(parsePathSuffix(copyString));
4560
+ setEditValue(editCount === 0 ? "" : parsePathSuffix(copyString));
4561
4561
  setValidationError(null);
4562
4562
  }
4563
4563
  function onEditValueChange(value) {
@@ -4640,7 +4640,8 @@ function useShareLink(props) {
4640
4640
  editLimitText: props.editLimitText,
4641
4641
  editLimitReachedText: props.editLimitReachedText,
4642
4642
  supportLinkText: props.supportLinkText,
4643
- customizeDisabled,
4643
+ // customizeDisabled,
4644
+ customizeDisabled: false,
4644
4645
  customizeDisabledTooltip: props.customizeDisabledTooltip,
4645
4646
  onCustomizeClick,
4646
4647
  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-c2f026c0.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-6bd52396.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';
@@ -6260,7 +6260,7 @@ function useDemoShareLink(props) {
6260
6260
  isEditing,
6261
6261
  editValue,
6262
6262
  domainPrefix,
6263
- editsRemaining: 3,
6263
+ editsRemaining: 5,
6264
6264
  maxEdits: 5,
6265
6265
  limitReached: false,
6266
6266
  validationError: null,
@@ -6276,7 +6276,7 @@ function useDemoShareLink(props) {
6276
6276
  customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
6277
6277
  onCustomizeClick: () => {
6278
6278
  setIsEditing(true);
6279
- setEditValue("sharelink/abc");
6279
+ setEditValue("");
6280
6280
  },
6281
6281
  onEditValueChange: (value) => {
6282
6282
  setEditValue(value);
@@ -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-c2f026c0.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-6bd52396.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';