pb-sxp-ui 1.0.3-alpha.4 → 1.0.3
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 +56 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -5
- package/dist/index.js +56 -40
- 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 +56 -40
- 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/core/components/SxpPageRender/Popup/index.js +5 -3
- package/es/core/components/SxpPageRender/RenderCard.js +5 -3
- package/es/core/components/SxpPageRender/index.js +5 -3
- package/es/core/context/EditorContext.js +3 -1
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/es/materials/sxp/template/Appoint/material.js +2 -1
- package/es/materials/sxp/template/Commodity/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/es/materials/sxp/template/Link/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/es/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/es/materials/sxp/template/components/Scroll.js +2 -2
- package/lib/core/components/SxpPageRender/Popup/index.js +5 -3
- package/lib/core/components/SxpPageRender/RenderCard.js +5 -3
- package/lib/core/components/SxpPageRender/index.js +5 -3
- package/lib/core/context/EditorContext.js +3 -1
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
- package/lib/materials/sxp/template/Appoint/material.js +2 -1
- package/lib/materials/sxp/template/Commodity/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -3
- package/lib/materials/sxp/template/Link/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
- package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
- package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
- package/lib/materials/sxp/template/components/Scroll.d.ts +1 -0
- package/lib/materials/sxp/template/components/Scroll.js +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -778,7 +778,6 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
|
|
778
778
|
});
|
779
779
|
typeof window !== 'undefined' &&
|
780
780
|
(window.sxpPopup = (type, aniType) => {
|
781
|
-
setPopup(type);
|
782
781
|
if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
|
783
782
|
setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
|
784
783
|
}
|
@@ -788,6 +787,9 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
|
|
788
787
|
duration: 0
|
789
788
|
});
|
790
789
|
}
|
790
|
+
setTimeout(() => {
|
791
|
+
setPopup(type);
|
792
|
+
});
|
791
793
|
});
|
792
794
|
typeof window !== 'undefined' &&
|
793
795
|
(window.getJointUtmLink = (url) => {
|
@@ -8180,7 +8182,7 @@ function useEventReport() {
|
|
8180
8182
|
* @Author: binruan@chatlabs.com
|
8181
8183
|
* @Date: 2023-11-02 18:34:34
|
8182
8184
|
* @LastEditors: binruan@chatlabs.com
|
8183
|
-
* @LastEditTime: 2024-04-
|
8185
|
+
* @LastEditTime: 2024-04-10 11:11:50
|
8184
8186
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
|
8185
8187
|
*
|
8186
8188
|
*/
|
@@ -8837,8 +8839,8 @@ Made in Italy` })));
|
|
8837
8839
|
}), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
|
8838
8840
|
React.createElement("div", { className: 'pb-commondityDiroNew-content' },
|
8839
8841
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
|
8840
|
-
React.createElement("div",
|
8841
|
-
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8842
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
|
8843
|
+
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
|
8842
8844
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage Calfskin')),
|
8843
8845
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
|
8844
8846
|
React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
|
@@ -8853,7 +8855,7 @@ var CommodityDetailDiroNewComponent = React.memo(CommodityDetailDiroNew$1);
|
|
8853
8855
|
* @Author: binruan@chatlabs.com
|
8854
8856
|
* @Date: 2024-03-20 10:27:31
|
8855
8857
|
* @LastEditors: binruan@chatlabs.com
|
8856
|
-
* @LastEditTime: 2024-04-
|
8858
|
+
* @LastEditTime: 2024-04-09 16:25:44
|
8857
8859
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
|
8858
8860
|
*
|
8859
8861
|
*/
|
@@ -8875,7 +8877,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8875
8877
|
price: {
|
8876
8878
|
color: '#000',
|
8877
8879
|
fontWeight: 'bold',
|
8878
|
-
fontSize:
|
8880
|
+
fontSize: 13
|
8879
8881
|
},
|
8880
8882
|
title: {
|
8881
8883
|
color: '#000',
|
@@ -8919,7 +8921,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
|
|
8919
8921
|
* @Author: binruan@chatlabs.com
|
8920
8922
|
* @Date: 2024-03-26 16:50:25
|
8921
8923
|
* @LastEditors: binruan@chatlabs.com
|
8922
|
-
* @LastEditTime: 2024-04-
|
8924
|
+
* @LastEditTime: 2024-04-09 21:40:18
|
8923
8925
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
|
8924
8926
|
*
|
8925
8927
|
*/
|
@@ -9279,7 +9281,8 @@ const Commodity = createMaterial(CommodityComponent, {
|
|
9279
9281
|
width: 236,
|
9280
9282
|
height: 74,
|
9281
9283
|
borderRadius: 3,
|
9282
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9284
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9285
|
+
marginBottom: 8
|
9283
9286
|
}
|
9284
9287
|
},
|
9285
9288
|
w: 100,
|
@@ -9315,7 +9318,7 @@ var AppointComponent = React.memo(Appoint$1);
|
|
9315
9318
|
* @Author: binruan@chatlabs.com
|
9316
9319
|
* @Date: 2023-07-28 18:29:57
|
9317
9320
|
* @LastEditors: binruan@chatlabs.com
|
9318
|
-
* @LastEditTime: 2024-
|
9321
|
+
* @LastEditTime: 2024-04-09 21:42:21
|
9319
9322
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
|
9320
9323
|
*
|
9321
9324
|
*/
|
@@ -9352,7 +9355,8 @@ const Appoint = createMaterial(AppointComponent, {
|
|
9352
9355
|
width: 236,
|
9353
9356
|
height: 44,
|
9354
9357
|
borderRadius: 3,
|
9355
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9358
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9359
|
+
marginBottom: 8
|
9356
9360
|
}
|
9357
9361
|
},
|
9358
9362
|
w: 100,
|
@@ -9428,7 +9432,8 @@ const Link = createMaterial(LinkComponent, {
|
|
9428
9432
|
width: 236,
|
9429
9433
|
height: 74,
|
9430
9434
|
borderRadius: 3,
|
9431
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9435
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9436
|
+
marginBottom: 8
|
9432
9437
|
}
|
9433
9438
|
},
|
9434
9439
|
w: 100,
|
@@ -9519,7 +9524,8 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
|
|
9519
9524
|
width: 236,
|
9520
9525
|
height: 74,
|
9521
9526
|
borderRadius: 3,
|
9522
|
-
backgroundColor: '#fff'
|
9527
|
+
backgroundColor: '#fff',
|
9528
|
+
marginBottom: 8
|
9523
9529
|
}
|
9524
9530
|
},
|
9525
9531
|
w: 100,
|
@@ -9567,7 +9573,7 @@ var CommodityDiroNewComponent = React.memo(CommodityDiroNew$1);
|
|
9567
9573
|
* @Author: binruan@chatlabs.com
|
9568
9574
|
* @Date: 2023-07-28 18:29:57
|
9569
9575
|
* @LastEditors: binruan@chatlabs.com
|
9570
|
-
* @LastEditTime: 2024-
|
9576
|
+
* @LastEditTime: 2024-04-09 11:54:27
|
9571
9577
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
|
9572
9578
|
*
|
9573
9579
|
*/
|
@@ -9591,13 +9597,13 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9591
9597
|
marginRight: 16
|
9592
9598
|
},
|
9593
9599
|
title: {
|
9594
|
-
fontSize:
|
9600
|
+
fontSize: 13,
|
9595
9601
|
color: '#000',
|
9596
9602
|
textAlign: 'left'
|
9597
9603
|
},
|
9598
9604
|
ctaTitle: {
|
9599
9605
|
textDecoration: 'underline',
|
9600
|
-
fontSize:
|
9606
|
+
fontSize: 14,
|
9601
9607
|
fontWeight: 'bold',
|
9602
9608
|
color: '#000',
|
9603
9609
|
textAlign: 'left',
|
@@ -9611,7 +9617,8 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
|
|
9611
9617
|
width: 260,
|
9612
9618
|
height: 86,
|
9613
9619
|
padding: 4,
|
9614
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9620
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9621
|
+
marginBottom: 8
|
9615
9622
|
}
|
9616
9623
|
},
|
9617
9624
|
w: 100,
|
@@ -9631,8 +9638,8 @@ var interactionRender$2 = [
|
|
9631
9638
|
}
|
9632
9639
|
];
|
9633
9640
|
|
9634
|
-
const Scroll = ({ children }) => {
|
9635
|
-
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: {
|
9641
|
+
const Scroll = ({ children, isPadding = true }) => {
|
9642
|
+
return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { padding: isPadding ? '0 12px 0 20px' : 0 } }, children));
|
9636
9643
|
};
|
9637
9644
|
var Scroll$1 = React.memo(Scroll);
|
9638
9645
|
|
@@ -9676,9 +9683,9 @@ const MultiCommodityDiro$1 = (_a) => {
|
|
9676
9683
|
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 }) }));
|
9677
9684
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9678
9685
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9679
|
-
return (React.createElement(Scroll$1,
|
9686
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9680
9687
|
var _a, _b, _c, _d, _e, _f;
|
9681
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({
|
9688
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9682
9689
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9683
9690
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9684
9691
|
React.createElement("div", { className: css.css({
|
@@ -9742,7 +9749,8 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
|
|
9742
9749
|
width: 236,
|
9743
9750
|
height: 74,
|
9744
9751
|
borderRadius: 3,
|
9745
|
-
backgroundColor: '#fff'
|
9752
|
+
backgroundColor: '#fff',
|
9753
|
+
marginBottom: 8
|
9746
9754
|
}
|
9747
9755
|
},
|
9748
9756
|
w: 100,
|
@@ -9779,9 +9787,9 @@ const MultiCommodity$1 = (_a) => {
|
|
9779
9787
|
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 }) }));
|
9780
9788
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9781
9789
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9782
|
-
return (React.createElement(Scroll$1,
|
9790
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9783
9791
|
var _a, _b, _c, _d, _e, _f;
|
9784
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign({
|
9792
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9785
9793
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9786
9794
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9787
9795
|
React.createElement("div", { className: css.css({
|
@@ -9845,7 +9853,8 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
|
|
9845
9853
|
width: 236,
|
9846
9854
|
height: 74,
|
9847
9855
|
borderRadius: 3,
|
9848
|
-
backgroundColor: 'rgba(0,0,0,.3)'
|
9856
|
+
backgroundColor: 'rgba(0,0,0,.3)',
|
9857
|
+
marginBottom: 8
|
9849
9858
|
}
|
9850
9859
|
},
|
9851
9860
|
w: 100,
|
@@ -9881,9 +9890,9 @@ const MultiCommodityDiroNew$1 = (_a) => {
|
|
9881
9890
|
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 }) }));
|
9882
9891
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
9883
9892
|
}, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
|
9884
|
-
return (React.createElement(Scroll$1,
|
9893
|
+
return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
|
9885
9894
|
var _a, _b, _c, _d, _e, _f;
|
9886
|
-
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({
|
9895
|
+
return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
|
9887
9896
|
React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
|
9888
9897
|
React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
|
9889
9898
|
React.createElement("div", { className: css.css({
|
@@ -9905,7 +9914,7 @@ var MultiCommodityDiroNewComponent = React.memo(MultiCommodityDiroNew$1);
|
|
9905
9914
|
* @Author: binruan@chatlabs.com
|
9906
9915
|
* @Date: 2023-07-28 18:29:57
|
9907
9916
|
* @LastEditors: binruan@chatlabs.com
|
9908
|
-
* @LastEditTime: 2024-
|
9917
|
+
* @LastEditTime: 2024-04-09 21:40:37
|
9909
9918
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
|
9910
9919
|
*
|
9911
9920
|
*/
|
@@ -9949,7 +9958,8 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
9949
9958
|
width: 260,
|
9950
9959
|
height: 86,
|
9951
9960
|
padding: 4,
|
9952
|
-
backgroundColor: 'rgba(255,255,255,0.75)'
|
9961
|
+
backgroundColor: 'rgba(255,255,255,0.75)',
|
9962
|
+
marginBottom: 8
|
9953
9963
|
}
|
9954
9964
|
},
|
9955
9965
|
w: 100,
|
@@ -12364,14 +12374,14 @@ function withBindDataSource(Component) {
|
|
12364
12374
|
* @Author: binruan@chatlabs.com
|
12365
12375
|
* @Date: 2023-12-26 16:11:34
|
12366
12376
|
* @LastEditors: binruan@chatlabs.com
|
12367
|
-
* @LastEditTime: 2024-
|
12377
|
+
* @LastEditTime: 2024-04-09 18:17:54
|
12368
12378
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
|
12369
12379
|
*
|
12370
12380
|
*/
|
12371
12381
|
const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
12372
12382
|
const { schema } = useEditor();
|
12373
12383
|
const renderComp = React.useMemo(() => {
|
12374
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
12384
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
12375
12385
|
if (!(rec === null || rec === void 0 ? void 0 : rec.video))
|
12376
12386
|
return null;
|
12377
12387
|
let cta = null;
|
@@ -12394,8 +12404,10 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
|
|
12394
12404
|
return null;
|
12395
12405
|
}
|
12396
12406
|
if (value && resolver) {
|
12397
|
-
const
|
12398
|
-
|
12407
|
+
const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
|
12408
|
+
const Component = withBindDataSource(t);
|
12409
|
+
const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
|
12410
|
+
return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec })));
|
12399
12411
|
}
|
12400
12412
|
else {
|
12401
12413
|
return null;
|
@@ -12421,7 +12433,7 @@ const Nudge = ({ nudge }) => {
|
|
12421
12433
|
* @Author: binruan@chatlabs.com
|
12422
12434
|
* @Date: 2024-01-15 19:03:09
|
12423
12435
|
* @LastEditors: binruan@chatlabs.com
|
12424
|
-
* @LastEditTime: 2024-04-
|
12436
|
+
* @LastEditTime: 2024-04-10 10:13:48
|
12425
12437
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
12426
12438
|
*
|
12427
12439
|
*/
|
@@ -12588,9 +12600,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12588
12600
|
}
|
12589
12601
|
if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
12590
12602
|
return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
|
12591
|
-
var _a, _b, _c, _d, _e, _f;
|
12592
|
-
const
|
12593
|
-
|
12603
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12604
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12605
|
+
const Component = withBindDataSource(t);
|
12606
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12607
|
+
return (React.createElement(Component, Object.assign({ key: index, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }) })));
|
12594
12608
|
});
|
12595
12609
|
}
|
12596
12610
|
return null;
|
@@ -12799,7 +12813,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
12799
12813
|
* @Author: binruan@chatlabs.com
|
12800
12814
|
* @Date: 2023-10-31 10:56:01
|
12801
12815
|
* @LastEditors: binruan@chatlabs.com
|
12802
|
-
* @LastEditTime: 2024-04-
|
12816
|
+
* @LastEditTime: 2024-04-10 09:57:19
|
12803
12817
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
|
12804
12818
|
*
|
12805
12819
|
*/
|
@@ -12845,10 +12859,12 @@ const Popup = () => {
|
|
12845
12859
|
const renderPopupDetail = React.useMemo(() => {
|
12846
12860
|
var _a, _b, _c;
|
12847
12861
|
return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
|
12848
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
12862
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
12849
12863
|
if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
|
12850
|
-
const
|
12851
|
-
|
12864
|
+
const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
|
12865
|
+
const Component = withBindDataSource(t);
|
12866
|
+
const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
|
12867
|
+
return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
|
12852
12868
|
}
|
12853
12869
|
else {
|
12854
12870
|
return React.createElement(React.Fragment, null);
|