pb-sxp-ui 1.3.5 → 1.3.7

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 (33) hide show
  1. package/dist/index.cjs +40 -16
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +40 -16
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +40 -16
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageRender/Popup/index.js +15 -1
  14. package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  15. package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
  16. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  17. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  18. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  19. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
  20. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  22. package/es/materials/sxp/popup/Iframe/index.js +2 -2
  23. package/lib/core/components/SxpPageRender/Popup/index.js +15 -1
  24. package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  25. package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
  26. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  27. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  28. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  29. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
  30. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  31. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  32. package/lib/materials/sxp/popup/Iframe/index.js +2 -2
  33. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1999,7 +1999,12 @@ var settingRender$9 = [
1999
1999
  label: '弹窗按钮',
2000
2000
  type: 'Upload',
2001
2001
  name: ['props', 'iframeIcon'],
2002
- text: '建议尺寸:106 * 41'
2002
+ text: '建议尺寸:72 * 30'
2003
+ },
2004
+ {
2005
+ label: '背景色',
2006
+ type: 'Color',
2007
+ name: ['props', 'iframeBgColor']
2003
2008
  }
2004
2009
  ]
2005
2010
  }
@@ -9131,7 +9136,7 @@ var CommodityGroup$1 = React.memo(CommodityGroup);
9131
9136
 
9132
9137
  const CommodityDetail$1 = (_a) => {
9133
9138
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9134
- var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel"]);
9139
+ var { content, style, bgImg, onClick, schema, isDefault, bottom_image, tipText, isPost, viewTime, rec, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["content", "style", "bgImg", "onClick", "schema", "isDefault", "bottom_image", "tipText", "isPost", "viewTime", "rec", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
9135
9140
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9136
9141
  const { jumpToWeb, productView } = useEventReport();
9137
9142
  const curTimeRef = React.useRef(null);
@@ -9297,7 +9302,7 @@ const CommodityDetail$1 = (_a) => {
9297
9302
  background: '#fff',
9298
9303
  borderRadius: '3px'
9299
9304
  }, onClick: () => setShow3DModal(true) },
9300
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
9305
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
9301
9306
  renderCommodityGroup(),
9302
9307
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9303
9308
  renderBtn(),
@@ -9305,10 +9310,10 @@ const CommodityDetail$1 = (_a) => {
9305
9310
  React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
9306
9311
  renderBtn()),
9307
9312
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
9308
- React.createElement("div", { style: { height: window.innerHeight } },
9313
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
9309
9314
  React.createElement("iframe", { src: iframeUrl, style: {
9310
9315
  width: '100%',
9311
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
9316
+ height: 'calc(100% - 50px)',
9312
9317
  marginTop: '50px',
9313
9318
  border: 'none'
9314
9319
  } })))));
@@ -9650,7 +9655,7 @@ const Prompt = createMaterial(PromptComponent, {
9650
9655
  * @Author: binruan@chatlabs.com
9651
9656
  * @Date: 2024-03-26 16:50:25
9652
9657
  * @LastEditors: binruan@chatlabs.com
9653
- * @LastEditTime: 2024-08-20 15:50:06
9658
+ * @LastEditTime: 2024-08-23 10:58:38
9654
9659
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9655
9660
  *
9656
9661
  */
@@ -9957,7 +9962,12 @@ var settingRender$7 = [
9957
9962
  label: '弹窗按钮',
9958
9963
  type: 'Upload',
9959
9964
  name: ['props', 'iframeIcon'],
9960
- text: '建议尺寸:106 * 41'
9965
+ text: '建议尺寸:72 * 30'
9966
+ },
9967
+ {
9968
+ label: '背景色',
9969
+ type: 'Color',
9970
+ name: ['props', 'iframeBgColor']
9961
9971
  }
9962
9972
  ]
9963
9973
  }
@@ -9965,7 +9975,7 @@ var settingRender$7 = [
9965
9975
 
9966
9976
  const CommodityDetailDiroNew$1 = (_a) => {
9967
9977
  var _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;
9968
- var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel"]);
9978
+ var { style, isDefault, rec, viewTime, isPost, bottom_image, tipText, swiper, commodityStyles, buttonStyle, index, commodityGroup, popupBg, iframeIcon, commodityImgRatio, isTel, iframeBgColor } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "tipText", "swiper", "commodityStyles", "buttonStyle", "index", "commodityGroup", "popupBg", "iframeIcon", "commodityImgRatio", "isTel", "iframeBgColor"]);
9969
9979
  React.useState(true);
9970
9980
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
9971
9981
  const { jumpToWeb, productView } = useEventReport();
@@ -10161,7 +10171,7 @@ Made in Italy` })));
10161
10171
  background: '#fff',
10162
10172
  borderRadius: '3px'
10163
10173
  }, onClick: () => setShow3DModal(true) },
10164
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '60px' })))),
10174
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '72px' })))),
10165
10175
  renderCommodityGroup(),
10166
10176
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10167
10177
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10186,10 +10196,10 @@ Made in Italy` })));
10186
10196
  productInfoText({ isPost }))),
10187
10197
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10188
10198
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10189
- React.createElement("div", { style: { height: window.innerHeight } },
10199
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10190
10200
  React.createElement("iframe", { src: iframeUrl, style: {
10191
10201
  width: '100%',
10192
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
10202
+ height: 'calc(100% - 50px)',
10193
10203
  marginTop: '50px',
10194
10204
  border: 'none'
10195
10205
  } })))));
@@ -10785,11 +10795,11 @@ const Iframe$1 = (_a) => {
10785
10795
  var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
10786
10796
  const { popupDetailData } = useSxpDataSource();
10787
10797
  const iframeUrl = (_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark;
10788
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : window === null || window === void 0 ? void 0 : window.innerHeight }))}` }, props),
10798
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props),
10789
10799
  React.createElement("iframe", { src: iframeUrl, style: {
10790
10800
  width: '100%',
10791
10801
  height: 'calc(100% - 50px)',
10792
- marginTop: '40px',
10802
+ marginTop: '50px',
10793
10803
  border: 'none'
10794
10804
  } })));
10795
10805
  };
@@ -16026,7 +16036,7 @@ var Tagbar$1 = React.memo(Tagbar);
16026
16036
  * @Author: binruan@chatlabs.com
16027
16037
  * @Date: 2024-01-15 19:03:09
16028
16038
  * @LastEditors: binruan@chatlabs.com
16029
- * @LastEditTime: 2024-08-22 18:34:01
16039
+ * @LastEditTime: 2024-08-23 11:35:02
16030
16040
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16031
16041
  *
16032
16042
  */
@@ -16895,7 +16905,7 @@ var index$1 = React.memo(DiyPortalPreview);
16895
16905
  * @Author: binruan@chatlabs.com
16896
16906
  * @Date: 2023-10-31 10:56:01
16897
16907
  * @LastEditors: binruan@chatlabs.com
16898
- * @LastEditTime: 2024-08-06 17:15:56
16908
+ * @LastEditTime: 2024-08-23 10:28:15
16899
16909
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16900
16910
  *
16901
16911
  */
@@ -16920,6 +16930,20 @@ const Popup = () => {
16920
16930
  setVisible(popup);
16921
16931
  }
16922
16932
  }, [popup]);
16933
+ const isFullScreen = React.useMemo(() => {
16934
+ var _a, _b, _c, _d;
16935
+ const valueItem = (_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.find((value, index) => {
16936
+ if ((value === null || value === void 0 ? void 0 : value.id) === (popup === null || popup === void 0 ? void 0 : popup.id)) {
16937
+ return value;
16938
+ }
16939
+ });
16940
+ if (valueItem !== -1 && ((_d = valueItem === null || valueItem === void 0 ? void 0 : valueItem.item) === null || _d === void 0 ? void 0 : _d.type) === 'Iframe') {
16941
+ return true;
16942
+ }
16943
+ else {
16944
+ return false;
16945
+ }
16946
+ }, [popup, schema]);
16923
16947
  const handleClose = () => {
16924
16948
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
16925
16949
  if (!popup ||
@@ -16968,7 +16992,7 @@ const Popup = () => {
16968
16992
  }
16969
16993
  });
16970
16994
  }, [schema, popup, resolver, handleClose]);
16971
- return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' } }, renderPopupDetail));
16995
+ return (React.createElement(Modal$1, { popup: visible, onClose: handleClose, padding: 0, modalStyle: { position: 'fixed' }, isFullScreen: isFullScreen }, renderPopupDetail));
16972
16996
  };
16973
16997
 
16974
16998
  /*