pb-sxp-ui 1.3.6 → 1.3.8

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 (35) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +111 -111
  3. package/dist/index.cjs +42 -28
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +42 -28
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.min.cjs +3 -3
  8. package/dist/index.min.cjs.map +1 -1
  9. package/dist/index.min.js +3 -3
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/pb-ui.js +42 -28
  12. package/dist/pb-ui.js.map +1 -1
  13. package/dist/pb-ui.min.js +3 -3
  14. package/dist/pb-ui.min.js.map +1 -1
  15. package/es/core/components/SxpPageRender/WaterFall/index.js +3 -12
  16. package/es/core/components/SxpPageRender/index.js +6 -1
  17. package/es/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  18. package/es/materials/sxp/popup/CommodityDetail/index.js +7 -7
  19. package/es/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  20. package/es/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  21. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  22. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
  23. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  24. package/es/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  25. package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -12
  26. package/lib/core/components/SxpPageRender/index.js +6 -1
  27. package/lib/materials/sxp/popup/CommodityDetail/index.d.ts +1 -0
  28. package/lib/materials/sxp/popup/CommodityDetail/index.js +7 -7
  29. package/lib/materials/sxp/popup/CommodityDetail/settingRender.d.ts +7 -2
  30. package/lib/materials/sxp/popup/CommodityDetail/settingRender.js +6 -1
  31. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.d.ts +1 -0
  32. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +4 -4
  33. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.d.ts +7 -2
  34. package/lib/materials/sxp/popup/CommodityDetailDiroNew/settingRender.js +6 -1
  35. package/package.json +111 -111
package/dist/pb-ui.js CHANGED
@@ -1992,7 +1992,12 @@
1992
1992
  label: '弹窗按钮',
1993
1993
  type: 'Upload',
1994
1994
  name: ['props', 'iframeIcon'],
1995
- text: '建议尺寸:72 * 41'
1995
+ text: '建议尺寸:72 * 30'
1996
+ },
1997
+ {
1998
+ label: '背景色',
1999
+ type: 'Color',
2000
+ name: ['props', 'iframeBgColor']
1996
2001
  }
1997
2002
  ]
1998
2003
  }
@@ -9124,7 +9129,7 @@
9124
9129
 
9125
9130
  const CommodityDetail$1 = (_a) => {
9126
9131
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9127
- 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"]);
9132
+ 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"]);
9128
9133
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9129
9134
  const { jumpToWeb, productView } = useEventReport();
9130
9135
  const curTimeRef = React.useRef(null);
@@ -9202,10 +9207,10 @@
9202
9207
  __html: setFontForText((_c = product === null || product === void 0 ? void 0 : product.taxInfo) !== null && _c !== void 0 ? _c : '税费', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.taxInfo)
9203
9208
  } }),
9204
9209
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
9205
- React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
9206
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
9207
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
9208
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
9210
+ React.createElement(ExpandableText$1, { foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, onClick: () => setShowModal(true), isPost: isPost, text: (_d = product === null || product === void 0 ? void 0 : product.info) !== null && _d !== void 0 ? _d : `The design inspiration of Tiffany Lock series comes from the power of connection and inclusiveness, and the
9211
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
9212
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
9213
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
9209
9214
  18-karat gold, this necklace is embellished with hand-set diamonds.`, maxStr: 79, className: 'pb-commondity-content-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info }))));
9210
9215
  };
9211
9216
  const renderBtn = () => {
@@ -9298,10 +9303,10 @@
9298
9303
  React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
9299
9304
  renderBtn()),
9300
9305
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
9301
- React.createElement("div", { style: { height: window.innerHeight } },
9306
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
9302
9307
  React.createElement("iframe", { src: iframeUrl, style: {
9303
9308
  width: '100%',
9304
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
9309
+ height: 'calc(100% - 50px)',
9305
9310
  marginTop: '50px',
9306
9311
  border: 'none'
9307
9312
  } })))));
@@ -9643,7 +9648,7 @@
9643
9648
  * @Author: binruan@chatlabs.com
9644
9649
  * @Date: 2024-03-26 16:50:25
9645
9650
  * @LastEditors: binruan@chatlabs.com
9646
- * @LastEditTime: 2024-08-20 15:50:06
9651
+ * @LastEditTime: 2024-08-23 10:58:38
9647
9652
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9648
9653
  *
9649
9654
  */
@@ -9950,7 +9955,12 @@
9950
9955
  label: '弹窗按钮',
9951
9956
  type: 'Upload',
9952
9957
  name: ['props', 'iframeIcon'],
9953
- text: '建议尺寸:72 * 41'
9958
+ text: '建议尺寸:72 * 30'
9959
+ },
9960
+ {
9961
+ label: '背景色',
9962
+ type: 'Color',
9963
+ name: ['props', 'iframeBgColor']
9954
9964
  }
9955
9965
  ]
9956
9966
  }
@@ -9958,7 +9968,7 @@
9958
9968
 
9959
9969
  const CommodityDetailDiroNew$1 = (_a) => {
9960
9970
  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;
9961
- 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"]);
9971
+ 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"]);
9962
9972
  React.useState(true);
9963
9973
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
9964
9974
  const { jumpToWeb, productView } = useEventReport();
@@ -10077,7 +10087,7 @@
10077
10087
  const productInfoText = ({ isPost }) => {
10078
10088
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
10079
10089
  React.createElement(ExpandableText$1, { isPost: isPost, onClick: () => setShowModal(true), className: 'pb-commondityDiroNew-info', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.info, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (product === null || product === void 0 ? void 0 : product.info) ||
10080
- `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
10090
+ `Unveiled at the Spring-Summer 2023 fashion show, the Dior Toujours bag is distinguished by a casual and practical design. Crafted in black calfskin with Macrocannage topstitching, it showcases a spacious interior compartment with a matching pouch to organize essentials. Its leather strap closure keeps items secure while the D of the CD Lock closure twists to adjust the sides and enhance the bag's silhouette. The leather handles can be adjusted using the small notches in order to be able to carry the large bag by hand or wear it over the shoulder. CD Lock and strap closures D.I.O.R. charms Removable interior pouch Adjustable leather handles Dust bag included
10081
10091
  Made in Italy` })));
10082
10092
  };
10083
10093
  const getStyle = React.useCallback((style) => {
@@ -10179,10 +10189,10 @@ Made in Italy` })));
10179
10189
  productInfoText({ isPost }))),
10180
10190
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10181
10191
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10182
- React.createElement("div", { style: { height: window.innerHeight } },
10192
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10183
10193
  React.createElement("iframe", { src: iframeUrl, style: {
10184
10194
  width: '100%',
10185
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
10195
+ height: 'calc(100% - 50px)',
10186
10196
  marginTop: '50px',
10187
10197
  border: 'none'
10188
10198
  } })))));
@@ -14146,7 +14156,7 @@ Made in Italy` })));
14146
14156
  * @Author: binruan@chatlabs.com
14147
14157
  * @Date: 2024-01-10 10:58:24
14148
14158
  * @LastEditors: binruan@chatlabs.com
14149
- * @LastEditTime: 2024-06-20 12:45:26
14159
+ * @LastEditTime: 2024-08-23 14:32:55
14150
14160
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
14151
14161
  *
14152
14162
  */
@@ -14170,21 +14180,21 @@ Made in Italy` })));
14170
14180
  }
14171
14181
  }, []);
14172
14182
  const handleClose = () => {
14173
- const isEq = lodash.isEqual(rtcList, cacheRtcList);
14174
- if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
14175
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
14176
- }
14183
+ var _a, _b;
14184
+ // const isEq = isEqual(rtcList, cacheRtcList);
14185
+ // if (!isEq && cacheRtcList && cacheRtcList?.length) {
14186
+ // setRtcList?.(cacheRtcList);
14187
+ // }
14177
14188
  backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
14178
14189
  reportTagsView();
14179
14190
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
14180
14191
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
14181
- setTimeout(() => {
14182
- var _a, _b;
14183
- if (!isEq) {
14184
- (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
14185
- }
14186
- setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
14187
- }, 0);
14192
+ // setTimeout(() => {
14193
+ // if (!isEq) {
14194
+ (_b = (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper) === null || _b === void 0 ? void 0 : _b.slideTo(cacheActiveIndex, 0, false);
14195
+ // }
14196
+ setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
14197
+ // }, 0);
14188
14198
  };
14189
14199
  const [recData, setRecData] = React.useState();
14190
14200
  React.useEffect(() => {
@@ -16019,7 +16029,7 @@ Made in Italy` })));
16019
16029
  * @Author: binruan@chatlabs.com
16020
16030
  * @Date: 2024-01-15 19:03:09
16021
16031
  * @LastEditors: binruan@chatlabs.com
16022
- * @LastEditTime: 2024-08-22 18:34:01
16032
+ * @LastEditTime: 2024-08-23 14:04:14
16023
16033
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16024
16034
  *
16025
16035
  */
@@ -16036,7 +16046,7 @@ Made in Italy` })));
16036
16046
  const [isShowMore, setIsShowMore] = React.useState(false);
16037
16047
  const [isReload, setIsReload] = React.useState(new Date().getTime());
16038
16048
  const skipLinkRef = React.useRef(false);
16039
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor } = useSxpDataSource();
16049
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList } = useSxpDataSource();
16040
16050
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
16041
16051
  const isShowFingerTip = React.useMemo(() => {
16042
16052
  return data.length > 0 && !loading && (getFeUserId() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -16487,6 +16497,10 @@ Made in Italy` })));
16487
16497
  ]);
16488
16498
  return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
16489
16499
  waterFallData && (React.createElement(Navbar$1, { icon: img, styles: { background: 'rgba(0,0,0,.3)', color: '#fff' }, textStyle: Object.assign(Object.assign({}, (_e = (_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.textStyles) === null || _e === void 0 ? void 0 : _e.hashTagTitle), { color: '#fff' }), onClose: () => {
16500
+ const isEq = lodash.isEqual(rtcList, cacheRtcList);
16501
+ if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
16502
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
16503
+ }
16490
16504
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
16491
16505
  } })),
16492
16506
  renderLogo,