@saasquatch/mint-components 1.13.1-5 → 1.13.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.
Files changed (25) hide show
  1. package/dist/cjs/{ShadowViewAddon-2d76fc88.js → ShadowViewAddon-05a081cb.js} +3 -20
  2. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +1 -1
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  4. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -11
  5. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  6. package/dist/collection/components/sqm-share-button/useShareButton.js +2 -9
  7. package/dist/esm/{ShadowViewAddon-c0e9e31f.js → ShadowViewAddon-657fa9ad.js} +3 -20
  8. package/dist/esm/sqm-big-stat_39.entry.js +1 -1
  9. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  10. package/dist/esm-es5/ShadowViewAddon-657fa9ad.js +1 -0
  11. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  12. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  13. package/dist/mint-components/mint-components.esm.js +1 -1
  14. package/dist/mint-components/{p-4484210d.entry.js → p-312a0cce.entry.js} +1 -1
  15. package/dist/mint-components/p-37996351.system.js +1 -1
  16. package/dist/mint-components/{p-41080310.system.entry.js → p-4b1ecbcc.system.entry.js} +1 -1
  17. package/dist/mint-components/{p-7fb0e1f3.system.entry.js → p-5eb2e54b.system.entry.js} +1 -1
  18. package/dist/mint-components/{p-d63f9526.entry.js → p-6a96dd55.entry.js} +1 -1
  19. package/dist/mint-components/p-b8a9ea18.system.js +1 -0
  20. package/dist/mint-components/{p-5d9f7f45.js → p-ba31e503.js} +20 -20
  21. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -0
  22. package/docs/docs.docx +0 -0
  23. package/package.json +1 -1
  24. package/dist/esm-es5/ShadowViewAddon-c0e9e31f.js +0 -1
  25. package/dist/mint-components/p-19847f89.system.js +0 -1
@@ -86,17 +86,7 @@ function ShareButtonView(props, children) {
86
86
  return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
87
87
  index.h("style", { type: "text/css" }, styleString),
88
88
  index.h("style", { type: "text/css" }, vanillaStyle),
89
- index.h("a", { href: props.messageLink, target: props.openInSameTab ? "_self" : "_blank" },
90
- "(auto) ",
91
- props.messageLink),
92
- index.h("a", { href: props.messageLink, target: "_self" },
93
- "(self) ",
94
- props.messageLink),
95
- index.h("a", { href: props.messageLink, target: "_blank" },
96
- "(blank) ",
97
- props.messageLink),
98
- index.h("br", null),
99
- index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
89
+ index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
100
90
  !props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
101
91
  !props.hidetext && children)));
102
92
  }
@@ -517,20 +507,13 @@ function useShareButton(props) {
517
507
  messageLink;
518
508
  const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
519
509
  const openInSameTab = ios && !safari;
520
- console.log("userAgent", userAgent);
521
- console.log("safari", safari);
522
- console.log("ios", ios);
523
- console.log("openInSameTab", openInSameTab);
524
- console.log("isPlainLink", isPlainLink);
525
- console.log("messageLink", messageLink);
526
- console.log("environment.type", environment.type);
527
- console.log("medium", medium);
528
510
  return {
529
511
  ...props,
530
512
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
531
513
  messageLink,
514
+ isPlainLink,
532
515
  // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
533
- onClick: isPlainLink ? undefined : onClick,
516
+ onClick: onClick,
534
517
  openInSameTab,
535
518
  hide,
536
519
  };
@@ -22,7 +22,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
22
22
  const usePortalLogin = require('./usePortalLogin-63d896d1.js');
23
23
  const AsYouType = require('./AsYouType-6788393a.js');
24
24
  const utilities = require('./utilities-78f5e169.js');
25
- const ShadowViewAddon = require('./ShadowViewAddon-2d76fc88.js');
25
+ const ShadowViewAddon = require('./ShadowViewAddon-05a081cb.js');
26
26
  require('./sqm-portal-container-view-4f15143a.js');
27
27
  const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
28
28
 
@@ -32,7 +32,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-33164798.js');
32
32
  require('./utilities-78f5e169.js');
33
33
  const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-fe602822.js');
34
34
  const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7b678f34.js');
35
- const ShadowViewAddon = require('./ShadowViewAddon-2d76fc88.js');
35
+ const ShadowViewAddon = require('./ShadowViewAddon-05a081cb.js');
36
36
  const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
37
37
  const sqmInvoiceTableView = require('./sqm-invoice-table-view-baded4af.js');
38
38
 
@@ -71,17 +71,7 @@ export function ShareButtonView(props, children) {
71
71
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
72
72
  h("style", { type: "text/css" }, styleString),
73
73
  h("style", { type: "text/css" }, vanillaStyle),
74
- h("a", { href: props.messageLink, target: props.openInSameTab ? "_self" : "_blank" },
75
- "(auto) ",
76
- props.messageLink),
77
- h("a", { href: props.messageLink, target: "_self" },
78
- "(self) ",
79
- props.messageLink),
80
- h("a", { href: props.messageLink, target: "_blank" },
81
- "(blank) ",
82
- props.messageLink),
83
- h("br", null),
84
- h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
74
+ h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
85
75
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
86
76
  !props.hidetext && children)));
87
77
  }
@@ -489,7 +489,7 @@ export class ShareButton {
489
489
  "mutable": false,
490
490
  "complexType": {
491
491
  "original": "DemoData<ShareButtonViewProps>",
492
- "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"warning\" | \"info\" | \"success\" | \"default\" | \"primary\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; }",
492
+ "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; pill?: boolean; type?: \"text\" | \"warning\" | \"info\" | \"success\" | \"default\" | \"primary\" | \"danger\"; size?: \"small\" | \"medium\" | \"large\"; hideicon?: boolean; hidetext?: boolean; iconslot?: \"prefix\" | \"suffix\"; hide?: boolean; borderradius?: number; backgroundcolor?: string; textcolor?: string; messageLink?: string; openInSameTab?: boolean; isPlainLink?: boolean; }",
493
493
  "references": {
494
494
  "DemoData": {
495
495
  "location": "import",
@@ -97,20 +97,13 @@ export function useShareButton(props) {
97
97
  messageLink;
98
98
  const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
99
99
  const openInSameTab = ios && !safari;
100
- console.log("userAgent", userAgent);
101
- console.log("safari", safari);
102
- console.log("ios", ios);
103
- console.log("openInSameTab", openInSameTab);
104
- console.log("isPlainLink", isPlainLink);
105
- console.log("messageLink", messageLink);
106
- console.log("environment.type", environment.type);
107
- console.log("medium", medium);
108
100
  return {
109
101
  ...props,
110
102
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
111
103
  messageLink,
104
+ isPlainLink,
112
105
  // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
113
- onClick: isPlainLink ? undefined : onClick,
106
+ onClick: onClick,
114
107
  openInSameTab,
115
108
  hide,
116
109
  };
@@ -84,17 +84,7 @@ function ShareButtonView(props, children) {
84
84
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
85
85
  h("style", { type: "text/css" }, styleString),
86
86
  h("style", { type: "text/css" }, vanillaStyle),
87
- h("a", { href: props.messageLink, target: props.openInSameTab ? "_self" : "_blank" },
88
- "(auto) ",
89
- props.messageLink),
90
- h("a", { href: props.messageLink, target: "_self" },
91
- "(self) ",
92
- props.messageLink),
93
- h("a", { href: props.messageLink, target: "_blank" },
94
- "(blank) ",
95
- props.messageLink),
96
- h("br", null),
97
- h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
87
+ h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
98
88
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
99
89
  !props.hidetext && children)));
100
90
  }
@@ -515,20 +505,13 @@ function useShareButton(props) {
515
505
  messageLink;
516
506
  const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
517
507
  const openInSameTab = ios && !safari;
518
- console.log("userAgent", userAgent);
519
- console.log("safari", safari);
520
- console.log("ios", ios);
521
- console.log("openInSameTab", openInSameTab);
522
- console.log("isPlainLink", isPlainLink);
523
- console.log("messageLink", messageLink);
524
- console.log("environment.type", environment.type);
525
- console.log("medium", medium);
526
508
  return {
527
509
  ...props,
528
510
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
529
511
  messageLink,
512
+ isPlainLink,
530
513
  // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
531
- onClick: isPlainLink ? undefined : onClick,
514
+ onClick: onClick,
532
515
  openInSameTab,
533
516
  hide,
534
517
  };
@@ -18,7 +18,7 @@ import { P as PortalLoginView } from './sqm-portal-login-view-7e49609a.js';
18
18
  import { u as usePortalLogin } from './usePortalLogin-ef647a50.js';
19
19
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
20
20
  import { i as isEmpty } from './utilities-5b0ca040.js';
21
- import { b as useDemoBigStat, Q as useBigStat, B as BigStatView, M as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, J as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, V as demoRewardExchange, i as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-c0e9e31f.js';
21
+ import { b as useDemoBigStat, Q as useBigStat, B as BigStatView, M as autoColorScaleCss, G as CardFeedView, C as CheckboxFieldView, J as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, U as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, h as PortalFooterView, P as PortalFrameView, e as PortalRegisterView, R as ReferralIframeView, V as demoRewardExchange, i as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-657fa9ad.js';
22
22
  import './sqm-portal-container-view-1683ae32.js';
23
23
  import { u as usePayoutStatus } from './usePayoutStatus-58aa56b4.js';
24
24
 
@@ -28,7 +28,7 @@ import { P as PortalProfileView } from './sqm-portal-profile-view-93003974.js';
28
28
  import './utilities-5b0ca040.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-54a8651f.js';
30
30
  import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-b12cb894.js';
31
- 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 PortalRegisterView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, 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 CardFeedView, J as CouponCodeView, K as ProgressBar$2, M as autoColorScaleCss, O as ShadowViewAddon } from './ShadowViewAddon-c0e9e31f.js';
31
+ 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 PortalRegisterView, T as TaskCardView, f as ProgressBarView, g as PoweredByImg$1, h as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, C as CheckboxFieldView, D as DropdownFieldView, I as InputFieldView, 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 CardFeedView, J as CouponCodeView, K as ProgressBar$2, M as autoColorScaleCss, O as ShadowViewAddon } from './ShadowViewAddon-657fa9ad.js';
32
32
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-1683ae32.js';
33
33
  import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-af69cd33.js';
34
34