@sendoutcards/quantum-design-ui 1.7.45 → 1.7.46
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/index.es.js
CHANGED
|
@@ -22690,7 +22690,8 @@ var AffiliateUpsalePromotionWidget = function (_a) {
|
|
|
22690
22690
|
_b = _a.minWidth,
|
|
22691
22691
|
minWidth = _b === void 0 ? '320px' : _b,
|
|
22692
22692
|
_c = _a.width,
|
|
22693
|
-
width = _c === void 0 ? '100%' : _c
|
|
22693
|
+
width = _c === void 0 ? '100%' : _c,
|
|
22694
|
+
buttonOnclick = _a.buttonOnclick;
|
|
22694
22695
|
|
|
22695
22696
|
var openInNewTab = function (url) {
|
|
22696
22697
|
var newWindow = window.open(url, '_blank', 'noopener,noreferrer');
|
|
@@ -22706,7 +22707,7 @@ var AffiliateUpsalePromotionWidget = function (_a) {
|
|
|
22706
22707
|
title: title,
|
|
22707
22708
|
description: description,
|
|
22708
22709
|
buttonTitle: buttonTitle,
|
|
22709
|
-
buttonOnclick: function () {
|
|
22710
|
+
buttonOnclick: buttonOnclick ? buttonOnclick : function () {
|
|
22710
22711
|
return openInNewTab(url);
|
|
22711
22712
|
}
|
|
22712
22713
|
};
|
package/dist/src/portfolios/soc/affiliateUpsalePromotionWidget/affiliateUpsalePromotionWidget.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ export declare type AffiliateUpsalePromotionWidgetProps = {
|
|
|
3
3
|
type: 'customer' | 'freeAffiliate' | 'proAffiliate';
|
|
4
4
|
width?: string;
|
|
5
5
|
minWidth?: string;
|
|
6
|
+
buttonOnclick?: () => void;
|
|
6
7
|
};
|
|
7
8
|
export declare const AffiliateUpsalePromotionWidget: FC<AffiliateUpsalePromotionWidgetProps>;
|