pb-sxp-ui 1.0.4 → 1.0.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.
- package/dist/index.cjs +9 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +9 -12
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -3
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -3
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -3
- package/es/materials/sxp/template/components/EventProvider.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -3
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -3
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -3
- package/lib/materials/sxp/template/components/EventProvider.js +2 -2
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -8174,7 +8174,7 @@
|
|
8174
8174
|
* @Author: binruan@chatlabs.com
|
8175
8175
|
* @Date: 2023-11-02 18:34:34
|
8176
8176
|
* @LastEditors: binruan@chatlabs.com
|
8177
|
-
* @LastEditTime: 2024-04-10
|
8177
|
+
* @LastEditTime: 2024-04-10 18:40:21
|
8178
8178
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8179
8179
|
*
|
8180
8180
|
*/
|
@@ -9198,11 +9198,11 @@ Made in Italy` })));
|
|
9198
9198
|
}, rec, item);
|
9199
9199
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(rec);
|
9200
9200
|
if (isExternalLink) {
|
9201
|
-
if ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.
|
9201
|
+
if ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) === null || _d === void 0 ? void 0 : _d.link) {
|
9202
9202
|
const cta = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta;
|
9203
9203
|
const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
|
9204
9204
|
jumpToWeb(rec, product, cta);
|
9205
|
-
window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.
|
9205
|
+
window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindProduct) === null || _h === void 0 ? void 0 : _h.link;
|
9206
9206
|
}
|
9207
9207
|
}
|
9208
9208
|
else {
|
@@ -9680,16 +9680,15 @@ Made in Italy` })));
|
|
9680
9680
|
const { jumpToWeb } = useEventReport();
|
9681
9681
|
const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
9682
9682
|
const handleClick = lodash.throttle((item) => {
|
9683
|
-
var _a;
|
9684
9683
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
9685
9684
|
eventSubject: 'clickCta',
|
9686
9685
|
eventDescription: 'User clicked the CTA'
|
9687
9686
|
}, recData, item);
|
9688
9687
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9689
9688
|
if (isExternalLink) {
|
9690
|
-
if (
|
9689
|
+
if (item === null || item === void 0 ? void 0 : item.link) {
|
9691
9690
|
jumpToWeb(recData, item, item.bindCta);
|
9692
|
-
window.location.href = item.
|
9691
|
+
window.location.href = item.link;
|
9693
9692
|
}
|
9694
9693
|
}
|
9695
9694
|
else {
|
@@ -9794,16 +9793,15 @@ Made in Italy` })));
|
|
9794
9793
|
const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
9795
9794
|
const { jumpToWeb } = useEventReport();
|
9796
9795
|
const handleClick = lodash.throttle((item) => {
|
9797
|
-
var _a;
|
9798
9796
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
9799
9797
|
eventSubject: 'clickCta',
|
9800
9798
|
eventDescription: 'User clicked the CTA'
|
9801
9799
|
}, recData, item);
|
9802
9800
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9803
9801
|
if (isExternalLink) {
|
9804
|
-
if (
|
9802
|
+
if (item === null || item === void 0 ? void 0 : item.link) {
|
9805
9803
|
jumpToWeb(recData, item, item.bindCta);
|
9806
|
-
window.location.href = item.
|
9804
|
+
window.location.href = item.link;
|
9807
9805
|
}
|
9808
9806
|
}
|
9809
9807
|
else {
|
@@ -9907,16 +9905,15 @@ Made in Italy` })));
|
|
9907
9905
|
const { jumpToWeb } = useEventReport();
|
9908
9906
|
const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
|
9909
9907
|
const handleClick = lodash.throttle((item) => {
|
9910
|
-
var _a;
|
9911
9908
|
ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
|
9912
9909
|
eventSubject: 'clickCta',
|
9913
9910
|
eventDescription: 'User clicked the CTA'
|
9914
9911
|
}, recData, item);
|
9915
9912
|
setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
|
9916
9913
|
if (isExternalLink) {
|
9917
|
-
if (
|
9914
|
+
if (item === null || item === void 0 ? void 0 : item.link) {
|
9918
9915
|
jumpToWeb(recData, item, item.bindCta);
|
9919
|
-
window.location.href = item.
|
9916
|
+
window.location.href = item.link;
|
9920
9917
|
}
|
9921
9918
|
}
|
9922
9919
|
else {
|