@saasquatch/mint-components 1.13.0 → 1.13.1-0

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 (30) hide show
  1. package/dist/cjs/{ShadowViewAddon-d98f73be.js → ShadowViewAddon-bd00066a.js} +12 -6
  2. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +1 -1
  3. package/dist/cjs/sqm-stencilbook.cjs.entry.js +15 -2
  4. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +13 -1
  5. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +1 -1
  6. package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
  7. package/dist/collection/components/sqm-share-button/useShareButton.js +11 -5
  8. package/dist/esm/{ShadowViewAddon-ddfbe8e2.js → ShadowViewAddon-444b1f38.js} +12 -6
  9. package/dist/esm/sqm-big-stat_39.entry.js +1 -1
  10. package/dist/esm/sqm-stencilbook.entry.js +15 -2
  11. package/dist/esm-es5/ShadowViewAddon-444b1f38.js +1 -0
  12. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  13. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  14. package/dist/mint-components/mint-components.esm.js +1 -1
  15. package/dist/mint-components/{p-b3532369.js → p-17cc7c9b.js} +21 -21
  16. package/dist/mint-components/{p-68d18642.entry.js → p-22111c97.entry.js} +1 -1
  17. package/dist/mint-components/p-37996351.system.js +1 -1
  18. package/dist/mint-components/p-4acd5340.system.js +1 -0
  19. package/dist/mint-components/p-78078e48.system.entry.js +1 -0
  20. package/dist/mint-components/{p-d1b92919.system.entry.js → p-784a69ac.system.entry.js} +1 -1
  21. package/dist/mint-components/{p-6b78811d.entry.js → p-84cea9dd.entry.js} +1 -1
  22. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -0
  23. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -0
  24. package/docs/docs.docx +0 -0
  25. package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
  26. package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
  27. package/package.json +1 -1
  28. package/dist/esm-es5/ShadowViewAddon-ddfbe8e2.js +0 -1
  29. package/dist/mint-components/p-11d8ea66.system.js +0 -1
  30. package/dist/mint-components/p-c8cbb40f.system.entry.js +0 -1
@@ -86,7 +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("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
89
+ index.h("sl-button", { class: sheet.classes.buttonStyle, target: "_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` },
90
90
  !props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
91
91
  !props.hidetext && children)));
92
92
  }
@@ -464,7 +464,7 @@ function GenericShare(messageLink, errorText) {
464
464
  return messageLink ? window.open(messageLink) : alert(errorText);
465
465
  }
466
466
  function useShareButton(props) {
467
- var _a, _b;
467
+ var _a, _b, _c, _d;
468
468
  const { sharetitle, sharetext, medium } = props;
469
469
  const programId = props.programId ? props.programId : index_module.H();
470
470
  const user = index_module.J();
@@ -484,27 +484,33 @@ function useShareButton(props) {
484
484
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
485
485
  window.orientation === undefined) ||
486
486
  (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
487
+ const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
487
488
  async function onClick() {
488
- var _a, _b, _c, _d;
489
489
  if (overrideData) {
490
490
  await setCopied({ referralCode: contextData.referralCode });
491
491
  contextData.refresh();
492
492
  }
493
493
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
494
494
  environment.type === "SquatchAndroid") {
495
- FacebookShare(directLink, (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink), props.errorText);
495
+ FacebookShare(directLink, messageLink, props.errorText);
496
496
  }
497
497
  else if (medium.toLocaleUpperCase() === "DIRECT") {
498
498
  NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
499
499
  }
500
500
  else {
501
- GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
501
+ GenericShare(messageLink, props.errorText);
502
502
  }
503
503
  }
504
+ const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
505
+ environment.type === "SquatchAndroid") &&
506
+ medium.toLocaleUpperCase() !== "DIRECT" &&
507
+ messageLink;
504
508
  return {
505
509
  ...props,
506
510
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
507
- onClick,
511
+ messageLink,
512
+ // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
513
+ onClick: isPlainLink ? undefined : onClick,
508
514
  hide,
509
515
  };
510
516
  }
@@ -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-d98f73be.js');
25
+ const ShadowViewAddon = require('./ShadowViewAddon-bd00066a.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-d98f73be.js');
35
+ const ShadowViewAddon = require('./ShadowViewAddon-bd00066a.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
 
@@ -1461,7 +1461,10 @@ const ShareButton_stories = {
1461
1461
  },
1462
1462
  };
1463
1463
  const WithIconPrefix = () => {
1464
- const props = { medium: "whatsapp", iconslot: "prefix" };
1464
+ const props = {
1465
+ medium: "whatsapp",
1466
+ iconslot: "prefix",
1467
+ };
1465
1468
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Share");
1466
1469
  };
1467
1470
  const WithIconSuffix = () => {
@@ -1513,6 +1516,15 @@ const WithCustomBorderRadius = () => {
1513
1516
  };
1514
1517
  return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Facebook");
1515
1518
  };
1519
+ const LinkLocationTest = () => {
1520
+ const props = {
1521
+ medium: "facebook",
1522
+ type: "text",
1523
+ onClick: undefined,
1524
+ messageLink: "https://www.example.com",
1525
+ };
1526
+ return index.h(ShadowViewAddon.ShareButtonView, Object.assign({}, props), "Click me");
1527
+ };
1516
1528
  const FullStackIcon = () => {
1517
1529
  return (index.h("div", null,
1518
1530
  index.h("sqm-share-button", { medium: "facebook" },
@@ -1566,6 +1578,7 @@ const ShareButton = /*#__PURE__*/Object.freeze({
1566
1578
  TextStyleWithoutIcon: TextStyleWithoutIcon,
1567
1579
  WithCustomColors: WithCustomColors,
1568
1580
  WithCustomBorderRadius: WithCustomBorderRadius,
1581
+ LinkLocationTest: LinkLocationTest,
1569
1582
  FullStackIcon: FullStackIcon,
1570
1583
  AllMediums: AllMediums
1571
1584
  });
@@ -8,7 +8,10 @@ export default {
8
8
  },
9
9
  };
10
10
  export const WithIconPrefix = () => {
11
- const props = { medium: "whatsapp", iconslot: "prefix" };
11
+ const props = {
12
+ medium: "whatsapp",
13
+ iconslot: "prefix",
14
+ };
12
15
  return h(ShareButtonView, Object.assign({}, props), "Share");
13
16
  };
14
17
  export const WithIconSuffix = () => {
@@ -60,6 +63,15 @@ export const WithCustomBorderRadius = () => {
60
63
  };
61
64
  return h(ShareButtonView, Object.assign({}, props), "Facebook");
62
65
  };
66
+ export const LinkLocationTest = () => {
67
+ const props = {
68
+ medium: "facebook",
69
+ type: "text",
70
+ onClick: undefined,
71
+ messageLink: "https://www.example.com",
72
+ };
73
+ return h(ShareButtonView, Object.assign({}, props), "Click me");
74
+ };
63
75
  export const FullStackIcon = () => {
64
76
  return (h("div", null,
65
77
  h("sqm-share-button", { medium: "facebook" },
@@ -71,7 +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("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
74
+ h("sl-button", { class: sheet.classes.buttonStyle, target: "_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` },
75
75
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
76
76
  !props.hidetext && children)));
77
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; }",
492
+ "resolved": "{ loading?: boolean; icon?: string; disabled?: boolean; onClick?: () => void; medium?: \"facebook\" | \"twitter\" | \"email\" | \"direct\" | \"linkedin\" | \"sms\" | \"fbmessenger\" | \"whatsapp\" | \"linemessenger\" | \"pinterest\" | \"reminder\" | \"unknown\"; href?: string; 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; }",
493
493
  "references": {
494
494
  "DemoData": {
495
495
  "location": "import",
@@ -54,7 +54,7 @@ function GenericShare(messageLink, errorText) {
54
54
  return messageLink ? window.open(messageLink) : alert(errorText);
55
55
  }
56
56
  export function useShareButton(props) {
57
- var _a, _b;
57
+ var _a, _b, _c, _d;
58
58
  const { sharetitle, sharetext, medium } = props;
59
59
  const programId = props.programId ? props.programId : useProgramId();
60
60
  const user = useUserIdentity();
@@ -74,27 +74,33 @@ export function useShareButton(props) {
74
74
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
75
75
  window.orientation === undefined) ||
76
76
  (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
77
+ const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
77
78
  async function onClick() {
78
- var _a, _b, _c, _d;
79
79
  if (overrideData) {
80
80
  await setCopied({ referralCode: contextData.referralCode });
81
81
  contextData.refresh();
82
82
  }
83
83
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
84
84
  environment.type === "SquatchAndroid") {
85
- FacebookShare(directLink, (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink), props.errorText);
85
+ FacebookShare(directLink, messageLink, props.errorText);
86
86
  }
87
87
  else if (medium.toLocaleUpperCase() === "DIRECT") {
88
88
  NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
89
89
  }
90
90
  else {
91
- GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
91
+ GenericShare(messageLink, props.errorText);
92
92
  }
93
93
  }
94
+ const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
95
+ environment.type === "SquatchAndroid") &&
96
+ medium.toLocaleUpperCase() !== "DIRECT" &&
97
+ messageLink;
94
98
  return {
95
99
  ...props,
96
100
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
97
- onClick,
101
+ messageLink,
102
+ // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
103
+ onClick: isPlainLink ? undefined : onClick,
98
104
  hide,
99
105
  };
100
106
  }
@@ -84,7 +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("sl-button", { class: sheet.classes.buttonStyle, loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: props.onClick, exportparts: `base: ${props.type}sharebutton-base` },
87
+ h("sl-button", { class: sheet.classes.buttonStyle, target: "_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` },
88
88
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
89
89
  !props.hidetext && children)));
90
90
  }
@@ -462,7 +462,7 @@ function GenericShare(messageLink, errorText) {
462
462
  return messageLink ? window.open(messageLink) : alert(errorText);
463
463
  }
464
464
  function useShareButton(props) {
465
- var _a, _b;
465
+ var _a, _b, _c, _d;
466
466
  const { sharetitle, sharetext, medium } = props;
467
467
  const programId = props.programId ? props.programId : H();
468
468
  const user = J();
@@ -482,27 +482,33 @@ function useShareButton(props) {
482
482
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
483
483
  window.orientation === undefined) ||
484
484
  (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
485
+ const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
485
486
  async function onClick() {
486
- var _a, _b, _c, _d;
487
487
  if (overrideData) {
488
488
  await setCopied({ referralCode: contextData.referralCode });
489
489
  contextData.refresh();
490
490
  }
491
491
  if (medium.toLocaleUpperCase() === "FACEBOOK" &&
492
492
  environment.type === "SquatchAndroid") {
493
- FacebookShare(directLink, (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.messageLink), props.errorText);
493
+ FacebookShare(directLink, messageLink, props.errorText);
494
494
  }
495
495
  else if (medium.toLocaleUpperCase() === "DIRECT") {
496
496
  NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
497
497
  }
498
498
  else {
499
- GenericShare((overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink), props.errorText);
499
+ GenericShare(messageLink, props.errorText);
500
500
  }
501
501
  }
502
+ const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
503
+ environment.type === "SquatchAndroid") &&
504
+ medium.toLocaleUpperCase() !== "DIRECT" &&
505
+ messageLink;
502
506
  return {
503
507
  ...props,
504
508
  loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
505
- onClick,
509
+ messageLink,
510
+ // If we have just a normal share link onClick should be undefined so we fallback to default link behavior
511
+ onClick: isPlainLink ? undefined : onClick,
506
512
  hide,
507
513
  };
508
514
  }
@@ -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-ddfbe8e2.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-444b1f38.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-ddfbe8e2.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-444b1f38.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
 
@@ -1457,7 +1457,10 @@ const ShareButton_stories = {
1457
1457
  },
1458
1458
  };
1459
1459
  const WithIconPrefix = () => {
1460
- const props = { medium: "whatsapp", iconslot: "prefix" };
1460
+ const props = {
1461
+ medium: "whatsapp",
1462
+ iconslot: "prefix",
1463
+ };
1461
1464
  return h(ShareButtonView, Object.assign({}, props), "Share");
1462
1465
  };
1463
1466
  const WithIconSuffix = () => {
@@ -1509,6 +1512,15 @@ const WithCustomBorderRadius = () => {
1509
1512
  };
1510
1513
  return h(ShareButtonView, Object.assign({}, props), "Facebook");
1511
1514
  };
1515
+ const LinkLocationTest = () => {
1516
+ const props = {
1517
+ medium: "facebook",
1518
+ type: "text",
1519
+ onClick: undefined,
1520
+ messageLink: "https://www.example.com",
1521
+ };
1522
+ return h(ShareButtonView, Object.assign({}, props), "Click me");
1523
+ };
1512
1524
  const FullStackIcon = () => {
1513
1525
  return (h("div", null,
1514
1526
  h("sqm-share-button", { medium: "facebook" },
@@ -1562,6 +1574,7 @@ const ShareButton = /*#__PURE__*/Object.freeze({
1562
1574
  TextStyleWithoutIcon: TextStyleWithoutIcon,
1563
1575
  WithCustomColors: WithCustomColors,
1564
1576
  WithCustomBorderRadius: WithCustomBorderRadius,
1577
+ LinkLocationTest: LinkLocationTest,
1565
1578
  FullStackIcon: FullStackIcon,
1566
1579
  AllMediums: AllMediums
1567
1580
  });