pb-sxp-ui 1.0.79 → 1.0.80
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 +30 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -29
- 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 +30 -29
- 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 +1 -1
- package/es/core/components/SxpPageRender/index.js +1 -24
- package/es/core/context/SxpDataSourceProvider.js +24 -0
- package/es/materials/sxp/HashTag/settingRender.d.ts +9 -0
- package/es/materials/sxp/HashTag/settingRender.js +2 -1
- package/lib/core/components/SxpPageRender/WaterFall/index.js +1 -1
- package/lib/core/components/SxpPageRender/index.js +1 -24
- package/lib/core/context/SxpDataSourceProvider.js +24 -0
- package/lib/materials/sxp/HashTag/settingRender.d.ts +9 -0
- package/lib/materials/sxp/HashTag/settingRender.js +2 -1
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -632,6 +632,30 @@
|
|
632
632
|
eventInfo: Object.assign(Object.assign({}, eventInfo), { ctaId: (_h = cta === null || cta === void 0 ? void 0 : cta.itemId) !== null && _h !== void 0 ? _h : '', ctaName: (_j = cta === null || cta === void 0 ? void 0 : cta.title) !== null && _j !== void 0 ? _j : '', contentTags: JSON.stringify(cta === null || cta === void 0 ? void 0 : cta.tags), position: position + '', contentId: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.itemId) !== null && _l !== void 0 ? _l : '', productId: isProd ? product === null || product === void 0 ? void 0 : product.itemId : '', traceInfo: (_m = cta === null || cta === void 0 ? void 0 : cta.traceInfo) !== null && _m !== void 0 ? _m : '', fromKName })
|
633
633
|
});
|
634
634
|
}, [bffEventReport, isFromHashtag]);
|
635
|
+
React.useEffect(() => {
|
636
|
+
var _a, _b;
|
637
|
+
const queryString = location.search.slice(1);
|
638
|
+
const params = qs.parse(queryString.replace(/\+/g, '%2B'));
|
639
|
+
for (const key in params) {
|
640
|
+
params[key] = params[key].replace(/%2B/g, '+');
|
641
|
+
}
|
642
|
+
const getVal = (key) => { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ''; };
|
643
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
644
|
+
eventInfo: {
|
645
|
+
eventSubject: 'h5LinkEnterFeed',
|
646
|
+
eventDescription: 'User enter h5 link',
|
647
|
+
utmSource: getVal('utm_source'),
|
648
|
+
utmMedium: getVal('utm_medium'),
|
649
|
+
utmCampaign: getVal('utm_campaign'),
|
650
|
+
utmId: getVal('utm_id'),
|
651
|
+
utmContent: getVal('utm_content'),
|
652
|
+
enterTime: `${Date.now()}`,
|
653
|
+
requestId: null,
|
654
|
+
enterUrl: (_b = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href) !== null && _b !== void 0 ? _b : '',
|
655
|
+
clSource: getVal('cl_sourc')
|
656
|
+
}
|
657
|
+
});
|
658
|
+
}, []);
|
635
659
|
React.useEffect(() => {
|
636
660
|
setLoading(true);
|
637
661
|
bffGetTagList();
|
@@ -10354,7 +10378,7 @@ Made in Italy` })));
|
|
10354
10378
|
* @Author: binruan@chatlabs.com
|
10355
10379
|
* @Date: 2024-04-07 14:07:12
|
10356
10380
|
* @LastEditors: binruan@chatlabs.com
|
10357
|
-
* @LastEditTime: 2024-
|
10381
|
+
* @LastEditTime: 2024-06-07 15:51:49
|
10358
10382
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
10359
10383
|
*
|
10360
10384
|
*/
|
@@ -10381,7 +10405,8 @@ Made in Italy` })));
|
|
10381
10405
|
{
|
10382
10406
|
type: 'Switch',
|
10383
10407
|
label: '固定宽高',
|
10384
|
-
name: ['props', 'isWaterfallFlow']
|
10408
|
+
name: ['props', 'isWaterfallFlow'],
|
10409
|
+
initialValue: true
|
10385
10410
|
}
|
10386
10411
|
]
|
10387
10412
|
},
|
@@ -12432,7 +12457,7 @@ Made in Italy` })));
|
|
12432
12457
|
* @Author: binruan@chatlabs.com
|
12433
12458
|
* @Date: 2024-01-10 10:58:24
|
12434
12459
|
* @LastEditors: binruan@chatlabs.com
|
12435
|
-
* @LastEditTime: 2024-06-07
|
12460
|
+
* @LastEditTime: 2024-06-07 15:57:29
|
12436
12461
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
12437
12462
|
*
|
12438
12463
|
*/
|
@@ -12526,7 +12551,7 @@ Made in Italy` })));
|
|
12526
12551
|
display: openHashtag ? 'block' : 'none'
|
12527
12552
|
} },
|
12528
12553
|
React.createElement(Navbar$1, { icon: img$1, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
|
12529
|
-
(props === null || props === void 0 ? void 0 : props.isWaterfallFlow) ? (React.createElement(WaterfallList
|
12554
|
+
(props === null || props === void 0 ? void 0 : props.isWaterfallFlow) === true || (props === null || props === void 0 ? void 0 : props.isWaterfallFlow) === undefined ? (React.createElement(WaterfallList, Object.assign({ reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ reportTagsView: reportTagsView }, props)))), modalEleRef.current);
|
12530
12555
|
};
|
12531
12556
|
var WaterFall$1 = React.memo(WaterFall);
|
12532
12557
|
|
@@ -13368,39 +13393,15 @@ Made in Italy` })));
|
|
13368
13393
|
return data.length > 0 && !loading && getFeUserId();
|
13369
13394
|
}, [data, loading]);
|
13370
13395
|
const handleH5EnterLink = React.useCallback(() => {
|
13371
|
-
var _a, _b;
|
13372
13396
|
if (data.length <= 0) {
|
13373
13397
|
return;
|
13374
13398
|
}
|
13375
13399
|
initTime();
|
13376
|
-
// 刷新 sessionId
|
13377
|
-
// refreshFeSessionId();
|
13378
|
-
const queryString = location.search.slice(1);
|
13379
|
-
const params = qs.parse(queryString.replace(/\+/g, '%2B'));
|
13380
|
-
for (const key in params) {
|
13381
|
-
params[key] = params[key].replace(/%2B/g, '+');
|
13382
|
-
}
|
13383
|
-
const getVal = (key) => { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ''; };
|
13384
|
-
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
13385
|
-
eventInfo: {
|
13386
|
-
eventSubject: 'h5LinkEnterFeed',
|
13387
|
-
eventDescription: 'User enter h5 link',
|
13388
|
-
utmSource: getVal('utm_source'),
|
13389
|
-
utmMedium: getVal('utm_medium'),
|
13390
|
-
utmCampaign: getVal('utm_campaign'),
|
13391
|
-
utmId: getVal('utm_id'),
|
13392
|
-
utmContent: getVal('utm_content'),
|
13393
|
-
enterTime: `${Date.now()}`,
|
13394
|
-
requestId: null,
|
13395
|
-
enterUrl: (_b = (_a = window === null || window === void 0 ? void 0 : window.location) === null || _a === void 0 ? void 0 : _a.href) !== null && _b !== void 0 ? _b : '',
|
13396
|
-
clSource: getVal('cl_sourc')
|
13397
|
-
}
|
13398
|
-
});
|
13399
13400
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13400
13401
|
eventName: 'PageView'
|
13401
13402
|
});
|
13402
13403
|
setIsInit(true);
|
13403
|
-
}, [
|
13404
|
+
}, [data.length, bffFbReport]);
|
13404
13405
|
const initTime = () => {
|
13405
13406
|
curTime.current = new Date();
|
13406
13407
|
viewTime.current = new Date();
|