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/index.js CHANGED
@@ -1977,7 +1977,12 @@ var settingRender$9 = [
1977
1977
  label: '弹窗按钮',
1978
1978
  type: 'Upload',
1979
1979
  name: ['props', 'iframeIcon'],
1980
- text: '建议尺寸:72 * 41'
1980
+ text: '建议尺寸:72 * 30'
1981
+ },
1982
+ {
1983
+ label: '背景色',
1984
+ type: 'Color',
1985
+ name: ['props', 'iframeBgColor']
1981
1986
  }
1982
1987
  ]
1983
1988
  }
@@ -9109,7 +9114,7 @@ var CommodityGroup$1 = memo(CommodityGroup);
9109
9114
 
9110
9115
  const CommodityDetail$1 = (_a) => {
9111
9116
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
9112
- 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"]);
9117
+ 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"]);
9113
9118
  const { sxpParameter, popupDetailData, isPreview, bffFbReport, popupCurTimeRef, checkCommodityIndexRef } = useSxpDataSource();
9114
9119
  const { jumpToWeb, productView } = useEventReport();
9115
9120
  const curTimeRef = useRef(null);
@@ -9187,10 +9192,10 @@ const CommodityDetail$1 = (_a) => {
9187
9192
  __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)
9188
9193
  } }),
9189
9194
  React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
9190
- 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
9191
- bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
9192
- collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
9193
- necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
9195
+ 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
9196
+ bold and avant-garde visual design interprets the emotional bond connecting my heart. The Tiffany Lock
9197
+ collection is unisex and is inspired by the padlock pattern found in the Tiffany Antique Collection. This
9198
+ necklace features a stylish and eye-catching oval clasp chain decorated with a lock pattern. Crafted from
9194
9199
  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 }))));
9195
9200
  };
9196
9201
  const renderBtn = () => {
@@ -9283,10 +9288,10 @@ const CommodityDetail$1 = (_a) => {
9283
9288
  React.createElement("div", { style: { paddingBottom: '80px' } }, renderContent({ isPost: false })),
9284
9289
  renderBtn()),
9285
9290
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
9286
- React.createElement("div", { style: { height: window.innerHeight } },
9291
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
9287
9292
  React.createElement("iframe", { src: iframeUrl, style: {
9288
9293
  width: '100%',
9289
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
9294
+ height: 'calc(100% - 50px)',
9290
9295
  marginTop: '50px',
9291
9296
  border: 'none'
9292
9297
  } })))));
@@ -9628,7 +9633,7 @@ const Prompt = createMaterial(PromptComponent, {
9628
9633
  * @Author: binruan@chatlabs.com
9629
9634
  * @Date: 2024-03-26 16:50:25
9630
9635
  * @LastEditors: binruan@chatlabs.com
9631
- * @LastEditTime: 2024-08-20 15:50:06
9636
+ * @LastEditTime: 2024-08-23 10:58:38
9632
9637
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\settingRender.tsx
9633
9638
  *
9634
9639
  */
@@ -9935,7 +9940,12 @@ var settingRender$7 = [
9935
9940
  label: '弹窗按钮',
9936
9941
  type: 'Upload',
9937
9942
  name: ['props', 'iframeIcon'],
9938
- text: '建议尺寸:72 * 41'
9943
+ text: '建议尺寸:72 * 30'
9944
+ },
9945
+ {
9946
+ label: '背景色',
9947
+ type: 'Color',
9948
+ name: ['props', 'iframeBgColor']
9939
9949
  }
9940
9950
  ]
9941
9951
  }
@@ -9943,7 +9953,7 @@ var settingRender$7 = [
9943
9953
 
9944
9954
  const CommodityDetailDiroNew$1 = (_a) => {
9945
9955
  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;
9946
- 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"]);
9956
+ 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"]);
9947
9957
  useState(true);
9948
9958
  const { sxpParameter, popupCurTimeRef, popupDetailData, isPreview, bffFbReport, checkCommodityIndexRef } = useSxpDataSource();
9949
9959
  const { jumpToWeb, productView } = useEventReport();
@@ -10062,7 +10072,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
10062
10072
  const productInfoText = ({ isPost }) => {
10063
10073
  return (React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
10064
10074
  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) ||
10065
- `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
10075
+ `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
10066
10076
  Made in Italy` })));
10067
10077
  };
10068
10078
  const getStyle = useCallback((style) => {
@@ -10164,10 +10174,10 @@ Made in Italy` })));
10164
10174
  productInfoText({ isPost }))),
10165
10175
  React.createElement(Modal$1, { visible: showModal, onClose: () => setShowModal(false) }, productInfoText({ isPost: false })),
10166
10176
  React.createElement(Modal$1, { visible: show3DModal, padding: 0, isFullScreen: true, onClose: () => setShow3DModal(false) },
10167
- React.createElement("div", { style: { height: window.innerHeight } },
10177
+ React.createElement("div", { style: { backgroundColor: iframeBgColor, height: '100%' } },
10168
10178
  React.createElement("iframe", { src: iframeUrl, style: {
10169
10179
  width: '100%',
10170
- height: isTel ? `${664 - 50}px` : `${window.innerHeight - 50}px`,
10180
+ height: 'calc(100% - 50px)',
10171
10181
  marginTop: '50px',
10172
10182
  border: 'none'
10173
10183
  } })))));
@@ -14131,7 +14141,7 @@ function WaterfallList(_a) {
14131
14141
  * @Author: binruan@chatlabs.com
14132
14142
  * @Date: 2024-01-10 10:58:24
14133
14143
  * @LastEditors: binruan@chatlabs.com
14134
- * @LastEditTime: 2024-06-20 12:45:26
14144
+ * @LastEditTime: 2024-08-23 14:32:55
14135
14145
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
14136
14146
  *
14137
14147
  */
@@ -14155,21 +14165,21 @@ const WaterFall = (props) => {
14155
14165
  }
14156
14166
  }, []);
14157
14167
  const handleClose = () => {
14158
- const isEq = isEqual(rtcList, cacheRtcList);
14159
- if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
14160
- setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
14161
- }
14168
+ var _a, _b;
14169
+ // const isEq = isEqual(rtcList, cacheRtcList);
14170
+ // if (!isEq && cacheRtcList && cacheRtcList?.length) {
14171
+ // setRtcList?.(cacheRtcList);
14172
+ // }
14162
14173
  backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
14163
14174
  reportTagsView();
14164
14175
  setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
14165
14176
  setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
14166
- setTimeout(() => {
14167
- var _a, _b;
14168
- if (!isEq) {
14169
- (_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);
14170
- }
14171
- setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
14172
- }, 0);
14177
+ // setTimeout(() => {
14178
+ // if (!isEq) {
14179
+ (_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);
14180
+ // }
14181
+ setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(false);
14182
+ // }, 0);
14173
14183
  };
14174
14184
  const [recData, setRecData] = useState();
14175
14185
  useEffect(() => {
@@ -16004,7 +16014,7 @@ var Tagbar$1 = memo(Tagbar);
16004
16014
  * @Author: binruan@chatlabs.com
16005
16015
  * @Date: 2024-01-15 19:03:09
16006
16016
  * @LastEditors: binruan@chatlabs.com
16007
- * @LastEditTime: 2024-08-22 18:34:01
16017
+ * @LastEditTime: 2024-08-23 14:04:14
16008
16018
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
16009
16019
  *
16010
16020
  */
@@ -16021,7 +16031,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16021
16031
  const [isShowMore, setIsShowMore] = useState(false);
16022
16032
  const [isReload, setIsReload] = useState(new Date().getTime());
16023
16033
  const skipLinkRef = useRef(false);
16024
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor } = useSxpDataSource();
16034
+ 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();
16025
16035
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
16026
16036
  const isShowFingerTip = useMemo(() => {
16027
16037
  return data.length > 0 && !loading && (getFeUserId() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -16472,6 +16482,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
16472
16482
  ]);
16473
16483
  return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
16474
16484
  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: () => {
16485
+ const isEq = isEqual(rtcList, cacheRtcList);
16486
+ if (!isEq && cacheRtcList && (cacheRtcList === null || cacheRtcList === void 0 ? void 0 : cacheRtcList.length)) {
16487
+ setRtcList === null || setRtcList === void 0 ? void 0 : setRtcList(cacheRtcList);
16488
+ }
16475
16489
  setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
16476
16490
  } })),
16477
16491
  renderLogo,