@saasquatch/mint-components 1.13.0 → 1.13.1-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-d98f73be.js → ShadowViewAddon-22f65024.js} +20 -6
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +15 -2
- package/dist/collection/components/sqm-share-button/ShareButton.stories.js +13 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +5 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +1 -1
- package/dist/collection/components/sqm-share-button/useShareButton.js +15 -5
- package/dist/esm/{ShadowViewAddon-ddfbe8e2.js → ShadowViewAddon-804babbe.js} +20 -6
- package/dist/esm/sqm-big-stat_39.entry.js +1 -1
- package/dist/esm/sqm-stencilbook.entry.js +15 -2
- package/dist/esm-es5/ShadowViewAddon-804babbe.js +1 -0
- package/dist/esm-es5/sqm-big-stat_39.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-6b78811d.entry.js → p-14ba05bb.entry.js} +1 -1
- package/dist/mint-components/{p-d1b92919.system.entry.js → p-1f73680e.system.entry.js} +1 -1
- package/dist/mint-components/p-2502e0ca.system.js +1 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/{p-68d18642.entry.js → p-51f47847.entry.js} +1 -1
- package/dist/mint-components/p-b6cf552d.system.entry.js +1 -0
- package/dist/mint-components/{p-b3532369.js → p-dc61cf7d.js} +21 -21
- package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -0
- package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/picklesdoc--2024-01-15--11-20-00.xlsx +0 -0
- package/docs/picklesdoc--2024-01-15--11-24-04.xlsx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-ddfbe8e2.js +0 -1
- package/dist/mint-components/p-11d8ea66.system.js +0 -1
- package/dist/mint-components/p-c8cbb40f.system.entry.js +0 -1
|
@@ -86,7 +86,11 @@ 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("
|
|
89
|
+
index.h("a", { href: props.messageLink, target: "_blank" }, "real link"),
|
|
90
|
+
index.h("br", null),
|
|
91
|
+
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,
|
|
92
|
+
// onClick={props.onClick}
|
|
93
|
+
href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
|
|
90
94
|
!props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
|
|
91
95
|
!props.hidetext && children)));
|
|
92
96
|
}
|
|
@@ -464,7 +468,7 @@ function GenericShare(messageLink, errorText) {
|
|
|
464
468
|
return messageLink ? window.open(messageLink) : alert(errorText);
|
|
465
469
|
}
|
|
466
470
|
function useShareButton(props) {
|
|
467
|
-
var _a, _b;
|
|
471
|
+
var _a, _b, _c, _d;
|
|
468
472
|
const { sharetitle, sharetext, medium } = props;
|
|
469
473
|
const programId = props.programId ? props.programId : index_module.H();
|
|
470
474
|
const user = index_module.J();
|
|
@@ -484,27 +488,37 @@ function useShareButton(props) {
|
|
|
484
488
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
485
489
|
window.orientation === undefined) ||
|
|
486
490
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
491
|
+
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
492
|
async function onClick() {
|
|
488
|
-
var _a, _b, _c, _d;
|
|
489
493
|
if (overrideData) {
|
|
490
494
|
await setCopied({ referralCode: contextData.referralCode });
|
|
491
495
|
contextData.refresh();
|
|
492
496
|
}
|
|
493
497
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
494
498
|
environment.type === "SquatchAndroid") {
|
|
495
|
-
FacebookShare(directLink,
|
|
499
|
+
FacebookShare(directLink, messageLink, props.errorText);
|
|
496
500
|
}
|
|
497
501
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
498
502
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
499
503
|
}
|
|
500
504
|
else {
|
|
501
|
-
GenericShare(
|
|
505
|
+
GenericShare(messageLink, props.errorText);
|
|
502
506
|
}
|
|
503
507
|
}
|
|
508
|
+
const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
509
|
+
environment.type === "SquatchAndroid") &&
|
|
510
|
+
medium.toLocaleUpperCase() !== "DIRECT" &&
|
|
511
|
+
messageLink;
|
|
512
|
+
console.log("isPlainLink", isPlainLink);
|
|
513
|
+
console.log("messageLink", messageLink);
|
|
514
|
+
console.log("environment.type", environment.type);
|
|
515
|
+
console.log("medium", medium);
|
|
504
516
|
return {
|
|
505
517
|
...props,
|
|
506
518
|
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
507
|
-
|
|
519
|
+
messageLink,
|
|
520
|
+
// If we have just a normal share link onClick should be undefined so we fallback to default link behavior
|
|
521
|
+
onClick: isPlainLink ? undefined : onClick,
|
|
508
522
|
hide,
|
|
509
523
|
};
|
|
510
524
|
}
|
|
@@ -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-
|
|
25
|
+
const ShadowViewAddon = require('./ShadowViewAddon-22f65024.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-
|
|
35
|
+
const ShadowViewAddon = require('./ShadowViewAddon-22f65024.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 = {
|
|
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 = {
|
|
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,11 @@ 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("
|
|
74
|
+
h("a", { href: props.messageLink, target: "_blank" }, "real link"),
|
|
75
|
+
h("br", null),
|
|
76
|
+
h("sl-button", { class: sheet.classes.buttonStyle, target: "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type,
|
|
77
|
+
// onClick={props.onClick}
|
|
78
|
+
href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
|
|
75
79
|
!props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
|
|
76
80
|
!props.hidetext && children)));
|
|
77
81
|
}
|
|
@@ -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\"; 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,37 @@ 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,
|
|
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(
|
|
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;
|
|
98
|
+
console.log("isPlainLink", isPlainLink);
|
|
99
|
+
console.log("messageLink", messageLink);
|
|
100
|
+
console.log("environment.type", environment.type);
|
|
101
|
+
console.log("medium", medium);
|
|
94
102
|
return {
|
|
95
103
|
...props,
|
|
96
104
|
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
97
|
-
|
|
105
|
+
messageLink,
|
|
106
|
+
// If we have just a normal share link onClick should be undefined so we fallback to default link behavior
|
|
107
|
+
onClick: isPlainLink ? undefined : onClick,
|
|
98
108
|
hide,
|
|
99
109
|
};
|
|
100
110
|
}
|
|
@@ -84,7 +84,11 @@ 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("
|
|
87
|
+
h("a", { href: props.messageLink, target: "_blank" }, "real link"),
|
|
88
|
+
h("br", null),
|
|
89
|
+
h("sl-button", { class: sheet.classes.buttonStyle, target: "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type,
|
|
90
|
+
// onClick={props.onClick}
|
|
91
|
+
href: props.messageLink, exportparts: `base: ${props.type}sharebutton-base` },
|
|
88
92
|
!props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
|
|
89
93
|
!props.hidetext && children)));
|
|
90
94
|
}
|
|
@@ -462,7 +466,7 @@ function GenericShare(messageLink, errorText) {
|
|
|
462
466
|
return messageLink ? window.open(messageLink) : alert(errorText);
|
|
463
467
|
}
|
|
464
468
|
function useShareButton(props) {
|
|
465
|
-
var _a, _b;
|
|
469
|
+
var _a, _b, _c, _d;
|
|
466
470
|
const { sharetitle, sharetext, medium } = props;
|
|
467
471
|
const programId = props.programId ? props.programId : H();
|
|
468
472
|
const user = J();
|
|
@@ -482,27 +486,37 @@ function useShareButton(props) {
|
|
|
482
486
|
const hide = (medium.toLocaleUpperCase() === "SMS" &&
|
|
483
487
|
window.orientation === undefined) ||
|
|
484
488
|
(medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
|
|
489
|
+
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
490
|
async function onClick() {
|
|
486
|
-
var _a, _b, _c, _d;
|
|
487
491
|
if (overrideData) {
|
|
488
492
|
await setCopied({ referralCode: contextData.referralCode });
|
|
489
493
|
contextData.refresh();
|
|
490
494
|
}
|
|
491
495
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
492
496
|
environment.type === "SquatchAndroid") {
|
|
493
|
-
FacebookShare(directLink,
|
|
497
|
+
FacebookShare(directLink, messageLink, props.errorText);
|
|
494
498
|
}
|
|
495
499
|
else if (medium.toLocaleUpperCase() === "DIRECT") {
|
|
496
500
|
NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
|
|
497
501
|
}
|
|
498
502
|
else {
|
|
499
|
-
GenericShare(
|
|
503
|
+
GenericShare(messageLink, props.errorText);
|
|
500
504
|
}
|
|
501
505
|
}
|
|
506
|
+
const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
507
|
+
environment.type === "SquatchAndroid") &&
|
|
508
|
+
medium.toLocaleUpperCase() !== "DIRECT" &&
|
|
509
|
+
messageLink;
|
|
510
|
+
console.log("isPlainLink", isPlainLink);
|
|
511
|
+
console.log("messageLink", messageLink);
|
|
512
|
+
console.log("environment.type", environment.type);
|
|
513
|
+
console.log("medium", medium);
|
|
502
514
|
return {
|
|
503
515
|
...props,
|
|
504
516
|
loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
|
|
505
|
-
|
|
517
|
+
messageLink,
|
|
518
|
+
// If we have just a normal share link onClick should be undefined so we fallback to default link behavior
|
|
519
|
+
onClick: isPlainLink ? undefined : onClick,
|
|
506
520
|
hide,
|
|
507
521
|
};
|
|
508
522
|
}
|
|
@@ -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-
|
|
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-804babbe.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-
|
|
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-804babbe.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 = {
|
|
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
|
});
|