pb-sxp-ui 1.3.7 → 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.
- package/LICENSE +21 -21
- package/README.md +111 -111
- package/dist/index.cjs +23 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -19
- 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 +23 -19
- 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/WaterFall/index.js +3 -12
- package/es/core/components/SxpPageRender/index.js +6 -1
- package/es/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/index.js +3 -12
- package/lib/core/components/SxpPageRender/index.js +6 -1
- package/lib/materials/sxp/popup/CommodityDetail/index.js +4 -4
- package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +1 -1
- package/package.json +111 -111
package/dist/index.js
CHANGED
@@ -9192,10 +9192,10 @@ const CommodityDetail$1 = (_a) => {
|
|
9192
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)
|
9193
9193
|
} }),
|
9194
9194
|
React.createElement("div", { hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.info) || (product === null || product === void 0 ? void 0 : product.info) === '') },
|
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
|
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
|
9199
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 }))));
|
9200
9200
|
};
|
9201
9201
|
const renderBtn = () => {
|
@@ -10072,7 +10072,7 @@ const CommodityDetailDiroNew$1 = (_a) => {
|
|
10072
10072
|
const productInfoText = ({ isPost }) => {
|
10073
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) === '') },
|
10074
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) ||
|
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
|
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
|
10076
10076
|
Made in Italy` })));
|
10077
10077
|
};
|
10078
10078
|
const getStyle = useCallback((style) => {
|
@@ -14141,7 +14141,7 @@ function WaterfallList(_a) {
|
|
14141
14141
|
* @Author: binruan@chatlabs.com
|
14142
14142
|
* @Date: 2024-01-10 10:58:24
|
14143
14143
|
* @LastEditors: binruan@chatlabs.com
|
14144
|
-
* @LastEditTime: 2024-
|
14144
|
+
* @LastEditTime: 2024-08-23 14:32:55
|
14145
14145
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
14146
14146
|
*
|
14147
14147
|
*/
|
@@ -14165,21 +14165,21 @@ const WaterFall = (props) => {
|
|
14165
14165
|
}
|
14166
14166
|
}, []);
|
14167
14167
|
const handleClose = () => {
|
14168
|
-
|
14169
|
-
|
14170
|
-
|
14171
|
-
|
14168
|
+
var _a, _b;
|
14169
|
+
// const isEq = isEqual(rtcList, cacheRtcList);
|
14170
|
+
// if (!isEq && cacheRtcList && cacheRtcList?.length) {
|
14171
|
+
// setRtcList?.(cacheRtcList);
|
14172
|
+
// }
|
14172
14173
|
backMainFeed('branch', selectTag, undefined, waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag);
|
14173
14174
|
reportTagsView();
|
14174
14175
|
setWaterFallData === null || setWaterFallData === void 0 ? void 0 : setWaterFallData(undefined);
|
14175
14176
|
setIsFromHashtag === null || setIsFromHashtag === void 0 ? void 0 : setIsFromHashtag(false);
|
14176
|
-
setTimeout(() => {
|
14177
|
-
|
14178
|
-
|
14179
|
-
|
14180
|
-
|
14181
|
-
|
14182
|
-
}, 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);
|
14183
14183
|
};
|
14184
14184
|
const [recData, setRecData] = useState();
|
14185
14185
|
useEffect(() => {
|
@@ -16014,7 +16014,7 @@ var Tagbar$1 = memo(Tagbar);
|
|
16014
16014
|
* @Author: binruan@chatlabs.com
|
16015
16015
|
* @Date: 2024-01-15 19:03:09
|
16016
16016
|
* @LastEditors: binruan@chatlabs.com
|
16017
|
-
* @LastEditTime: 2024-08-23
|
16017
|
+
* @LastEditTime: 2024-08-23 14:04:14
|
16018
16018
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
16019
16019
|
*
|
16020
16020
|
*/
|
@@ -16031,7 +16031,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16031
16031
|
const [isShowMore, setIsShowMore] = useState(false);
|
16032
16032
|
const [isReload, setIsReload] = useState(new Date().getTime());
|
16033
16033
|
const skipLinkRef = useRef(false);
|
16034
|
-
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();
|
16035
16035
|
const { backMainFeed, productView, jumpToWeb } = useEventReport();
|
16036
16036
|
const isShowFingerTip = useMemo(() => {
|
16037
16037
|
return data.length > 0 && !loading && (getFeUserId() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
|
@@ -16482,6 +16482,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
16482
16482
|
]);
|
16483
16483
|
return (React.createElement("div", { id: 'sxp-render', className: 'clc-sxp-container' },
|
16484
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
|
+
}
|
16485
16489
|
setOpenHashtag === null || setOpenHashtag === void 0 ? void 0 : setOpenHashtag(true);
|
16486
16490
|
} })),
|
16487
16491
|
renderLogo,
|