pb-sxp-ui 1.0.85 → 1.0.86
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 +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +2 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +16 -11
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +2 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/Consent/index.js +1 -1
- package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/es/core/components/SxpPageRender/index.js +11 -6
- package/lib/core/components/Consent/index.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +11 -6
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -442,7 +442,7 @@ var SXP_EVENT_TYPE;
|
|
442
442
|
* @Author: binruan@chatlabs.com
|
443
443
|
* @Date: 2024-06-13 15:16:53
|
444
444
|
* @LastEditors: binruan@chatlabs.com
|
445
|
-
* @LastEditTime: 2024-06-
|
445
|
+
* @LastEditTime: 2024-06-18 16:06:16
|
446
446
|
* @FilePath: \pb-sxp-ui\src\core\components\Consent\index.tsx
|
447
447
|
*
|
448
448
|
*/
|
@@ -482,7 +482,7 @@ const Consent$2 = ({ width = window.innerWidth, height = window.innerHeight, pri
|
|
482
482
|
eventSubject: 'userConsent',
|
483
483
|
eventDescription: '用户授权【操作结果】',
|
484
484
|
consentResult: '0',
|
485
|
-
consentTags: '[]',
|
485
|
+
consentTags: '["系统运营"]',
|
486
486
|
rtc: null,
|
487
487
|
requestId: null,
|
488
488
|
sessionID: null
|
@@ -12086,8 +12086,8 @@ const WaterfallFlowItem$1 = (props) => {
|
|
12086
12086
|
// 通过宽度比例获取图片高度
|
12087
12087
|
const height = imgInfo.height * (unitWidth / imgInfo.width);
|
12088
12088
|
if (isLoading) {
|
12089
|
-
// 加
|
12090
|
-
sizeChange(height +
|
12089
|
+
// 加56是因为下方文字部分高度为56,可以自己设置
|
12090
|
+
sizeChange(height + 56 + space, index);
|
12091
12091
|
}
|
12092
12092
|
}, [imgInfo, index, unitWidth, isLoading, space]); /* 增加sizeChange依赖项会导致在admin预览编辑时无限刷新 */
|
12093
12093
|
const calculateHeightForWidth = (videoWidth, videoHeight, targetWidth) => {
|
@@ -13609,7 +13609,7 @@ var Tagbar$1 = React.memo(Tagbar);
|
|
13609
13609
|
* @Author: binruan@chatlabs.com
|
13610
13610
|
* @Date: 2024-01-15 19:03:09
|
13611
13611
|
* @LastEditors: binruan@chatlabs.com
|
13612
|
-
* @LastEditTime: 2024-06-
|
13612
|
+
* @LastEditTime: 2024-06-18 11:50:31
|
13613
13613
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
|
13614
13614
|
*
|
13615
13615
|
*/
|
@@ -13700,9 +13700,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13700
13700
|
if (document.visibilityState === 'hidden') {
|
13701
13701
|
// 当用户导航到新页面、切换标签页、关闭标签页、最小化或关闭浏览器、刷新原页面(即离开原页面时),或者在移动设备上从浏览器切换到不同的应用程序时
|
13702
13702
|
// 移动端h5直接杀掉浏览器或宿主app时不会触发,pc端直接杀掉标签页时能触发
|
13703
|
-
|
13704
|
-
|
13705
|
-
|
13703
|
+
if (!openHashtag) {
|
13704
|
+
SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_HIDE, item);
|
13705
|
+
handleReportViewImageEnd(item);
|
13706
|
+
handleReportProductView(item);
|
13707
|
+
}
|
13706
13708
|
let fromKName = '';
|
13707
13709
|
if (popupDetailData && (((_b = (_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) || ((_c = item === null || item === void 0 ? void 0 : item.video) === null || _c === void 0 ? void 0 : _c.bindProduct))) {
|
13708
13710
|
fromKName = 'pdpPage';
|
@@ -13739,8 +13741,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13739
13741
|
else if (document.visibilityState === 'visible') {
|
13740
13742
|
// 页面可见时触发,注意页面初始化时不会触发
|
13741
13743
|
handleH5EnterLink();
|
13742
|
-
|
13743
|
-
|
13744
|
+
if (!openHashtag) {
|
13745
|
+
handleViewImageStartEvent(activeIndex);
|
13746
|
+
SXP_EVENT_BUS.emit(SXP_EVENT_TYPE.PAGE_DID_SHOW, item);
|
13747
|
+
}
|
13744
13748
|
backMainFeed('external');
|
13745
13749
|
}
|
13746
13750
|
};
|
@@ -13757,7 +13761,8 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13757
13761
|
isFromHashtag,
|
13758
13762
|
tempMap,
|
13759
13763
|
curTime,
|
13760
|
-
backMainFeed
|
13764
|
+
backMainFeed,
|
13765
|
+
openHashtag
|
13761
13766
|
]);
|
13762
13767
|
React.useEffect(() => {
|
13763
13768
|
const initTime = () => {
|