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/index.cjs
CHANGED
@@ -640,6 +640,30 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
640
640
|
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 })
|
641
641
|
});
|
642
642
|
}, [bffEventReport, isFromHashtag]);
|
643
|
+
React.useEffect(() => {
|
644
|
+
var _a, _b;
|
645
|
+
const queryString = location.search.slice(1);
|
646
|
+
const params = qs.parse(queryString.replace(/\+/g, '%2B'));
|
647
|
+
for (const key in params) {
|
648
|
+
params[key] = params[key].replace(/%2B/g, '+');
|
649
|
+
}
|
650
|
+
const getVal = (key) => { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ''; };
|
651
|
+
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
652
|
+
eventInfo: {
|
653
|
+
eventSubject: 'h5LinkEnterFeed',
|
654
|
+
eventDescription: 'User enter h5 link',
|
655
|
+
utmSource: getVal('utm_source'),
|
656
|
+
utmMedium: getVal('utm_medium'),
|
657
|
+
utmCampaign: getVal('utm_campaign'),
|
658
|
+
utmId: getVal('utm_id'),
|
659
|
+
utmContent: getVal('utm_content'),
|
660
|
+
enterTime: `${Date.now()}`,
|
661
|
+
requestId: null,
|
662
|
+
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 : '',
|
663
|
+
clSource: getVal('cl_sourc')
|
664
|
+
}
|
665
|
+
});
|
666
|
+
}, []);
|
643
667
|
React.useEffect(() => {
|
644
668
|
setLoading(true);
|
645
669
|
bffGetTagList();
|
@@ -10362,7 +10386,7 @@ var _a, _b;
|
|
10362
10386
|
* @Author: binruan@chatlabs.com
|
10363
10387
|
* @Date: 2024-04-07 14:07:12
|
10364
10388
|
* @LastEditors: binruan@chatlabs.com
|
10365
|
-
* @LastEditTime: 2024-
|
10389
|
+
* @LastEditTime: 2024-06-07 15:51:49
|
10366
10390
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
10367
10391
|
*
|
10368
10392
|
*/
|
@@ -10389,7 +10413,8 @@ var settingRender = [
|
|
10389
10413
|
{
|
10390
10414
|
type: 'Switch',
|
10391
10415
|
label: '固定宽高',
|
10392
|
-
name: ['props', 'isWaterfallFlow']
|
10416
|
+
name: ['props', 'isWaterfallFlow'],
|
10417
|
+
initialValue: true
|
10393
10418
|
}
|
10394
10419
|
]
|
10395
10420
|
},
|
@@ -12440,7 +12465,7 @@ function WaterfallList(_a) {
|
|
12440
12465
|
* @Author: binruan@chatlabs.com
|
12441
12466
|
* @Date: 2024-01-10 10:58:24
|
12442
12467
|
* @LastEditors: binruan@chatlabs.com
|
12443
|
-
* @LastEditTime: 2024-06-07
|
12468
|
+
* @LastEditTime: 2024-06-07 15:57:29
|
12444
12469
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
12445
12470
|
*
|
12446
12471
|
*/
|
@@ -12534,7 +12559,7 @@ const WaterFall = (props) => {
|
|
12534
12559
|
display: openHashtag ? 'block' : 'none'
|
12535
12560
|
} },
|
12536
12561
|
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 }),
|
12537
|
-
(props === null || props === void 0 ? void 0 : props.isWaterfallFlow) ? (React.createElement(WaterfallList
|
12562
|
+
(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);
|
12538
12563
|
};
|
12539
12564
|
var WaterFall$1 = React.memo(WaterFall);
|
12540
12565
|
|
@@ -13376,39 +13401,15 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
|
|
13376
13401
|
return data.length > 0 && !loading && getFeUserId();
|
13377
13402
|
}, [data, loading]);
|
13378
13403
|
const handleH5EnterLink = React.useCallback(() => {
|
13379
|
-
var _a, _b;
|
13380
13404
|
if (data.length <= 0) {
|
13381
13405
|
return;
|
13382
13406
|
}
|
13383
13407
|
initTime();
|
13384
|
-
// 刷新 sessionId
|
13385
|
-
// refreshFeSessionId();
|
13386
|
-
const queryString = location.search.slice(1);
|
13387
|
-
const params = qs.parse(queryString.replace(/\+/g, '%2B'));
|
13388
|
-
for (const key in params) {
|
13389
|
-
params[key] = params[key].replace(/%2B/g, '+');
|
13390
|
-
}
|
13391
|
-
const getVal = (key) => { var _a; return (_a = params[key]) !== null && _a !== void 0 ? _a : ''; };
|
13392
|
-
bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
|
13393
|
-
eventInfo: {
|
13394
|
-
eventSubject: 'h5LinkEnterFeed',
|
13395
|
-
eventDescription: 'User enter h5 link',
|
13396
|
-
utmSource: getVal('utm_source'),
|
13397
|
-
utmMedium: getVal('utm_medium'),
|
13398
|
-
utmCampaign: getVal('utm_campaign'),
|
13399
|
-
utmId: getVal('utm_id'),
|
13400
|
-
utmContent: getVal('utm_content'),
|
13401
|
-
enterTime: `${Date.now()}`,
|
13402
|
-
requestId: null,
|
13403
|
-
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 : '',
|
13404
|
-
clSource: getVal('cl_sourc')
|
13405
|
-
}
|
13406
|
-
});
|
13407
13408
|
bffFbReport === null || bffFbReport === void 0 ? void 0 : bffFbReport({
|
13408
13409
|
eventName: 'PageView'
|
13409
13410
|
});
|
13410
13411
|
setIsInit(true);
|
13411
|
-
}, [
|
13412
|
+
}, [data.length, bffFbReport]);
|
13412
13413
|
const initTime = () => {
|
13413
13414
|
curTime.current = new Date();
|
13414
13415
|
viewTime.current = new Date();
|