pb-sxp-ui 1.15.8 → 1.15.10
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 +35 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +35 -16
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +6 -6
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +6 -6
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +35 -16
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +6 -6
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/es/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/es/core/context/SxpDataSourceProvider.js +19 -2
- package/es/materials/sxp/HashTag/index.d.ts +2 -4
- package/es/materials/sxp/HashTag/material.js +2 -1
- package/es/materials/sxp/HashTag/settingRender.js +1 -1
- package/es/materials/sxp/consentPopup/Click/material.js +1 -1
- package/es/materials/sxp/consentPopup/Swipe/material.js +1 -1
- package/lib/core/components/SxpPageRender/WaterFall/List.js +3 -3
- package/lib/core/components/SxpPageRender/WaterFall/index.js +2 -2
- package/lib/core/context/SxpDataSourceProvider.js +19 -2
- package/lib/materials/sxp/HashTag/index.d.ts +2 -4
- package/lib/materials/sxp/HashTag/material.js +2 -1
- package/lib/materials/sxp/HashTag/settingRender.js +1 -1
- package/lib/materials/sxp/consentPopup/Click/material.js +1 -1
- package/lib/materials/sxp/consentPopup/Swipe/material.js +1 -1
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -752,6 +752,24 @@
|
|
752
752
|
.then((res) => res.json())
|
753
753
|
.catch((err) => Promise.reject(err));
|
754
754
|
}, [bffDataSource, fakeUserId]);
|
755
|
+
// bff API admin 请求方法
|
756
|
+
const bffFetchAdmin = React.useCallback((path, options) => {
|
757
|
+
if (!bffDataSource)
|
758
|
+
return;
|
759
|
+
const url = bffDataSource.url;
|
760
|
+
if (options === null || options === void 0 ? void 0 : options.query) {
|
761
|
+
const queryString = qs.stringify(options.query);
|
762
|
+
path = `${path}?${queryString}`;
|
763
|
+
}
|
764
|
+
return window
|
765
|
+
.fetch(`${url}/admin/${path}`, {
|
766
|
+
headers: Object.assign({ 'Content-Type': 'application/json' }, bffDataSource.headers),
|
767
|
+
method: options.method,
|
768
|
+
body: JSON.stringify(options.body)
|
769
|
+
})
|
770
|
+
.then((res) => res.json())
|
771
|
+
.catch((err) => Promise.reject(err));
|
772
|
+
}, [bffDataSource]);
|
755
773
|
// 获取推荐视频数据
|
756
774
|
const getRecommendVideos = React.useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
|
757
775
|
var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
@@ -780,7 +798,7 @@
|
|
780
798
|
const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
|
781
799
|
var _v, _w, _x, _y, _z, _0;
|
782
800
|
query.pageNum = pageNum;
|
783
|
-
result = yield (
|
801
|
+
result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
|
784
802
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
785
803
|
return undefined;
|
786
804
|
}
|
@@ -820,7 +838,7 @@
|
|
820
838
|
return Object.assign(Object.assign({}, result.data), { recList: list });
|
821
839
|
}
|
822
840
|
return result === null || result === void 0 ? void 0 : result.data;
|
823
|
-
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId]);
|
841
|
+
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
|
824
842
|
const loadVideos = React.useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
|
825
843
|
var _1, _2, _3, _4;
|
826
844
|
if (rtcList.length <= 0) {
|
@@ -13353,7 +13371,7 @@ Made in Italy` })));
|
|
13353
13371
|
* @Author: binruan@chatlabs.com
|
13354
13372
|
* @Date: 2024-04-07 14:07:12
|
13355
13373
|
* @LastEditors: binruan@chatlabs.com
|
13356
|
-
* @LastEditTime: 2025-02-
|
13374
|
+
* @LastEditTime: 2025-02-28 09:49:43
|
13357
13375
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
13358
13376
|
*
|
13359
13377
|
*/
|
@@ -13380,7 +13398,7 @@ Made in Italy` })));
|
|
13380
13398
|
{
|
13381
13399
|
type: 'HashTagFixedSize',
|
13382
13400
|
label: '固定宽高',
|
13383
|
-
name: ['props'
|
13401
|
+
name: ['props']
|
13384
13402
|
}
|
13385
13403
|
]
|
13386
13404
|
},
|
@@ -15188,7 +15206,7 @@ Made in Italy` })));
|
|
15188
15206
|
|
15189
15207
|
const WaterfallFlowItem = (props) => {
|
15190
15208
|
var _a;
|
15191
|
-
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
15209
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
15192
15210
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
15193
15211
|
const [showVideo, setShowVideo] = React.useState(false);
|
15194
15212
|
const imgDom = React.useRef(null);
|
@@ -15297,11 +15315,11 @@ Made in Italy` })));
|
|
15297
15315
|
}, 0);
|
15298
15316
|
};
|
15299
15317
|
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
15300
|
-
React.createElement("div", { className:
|
15318
|
+
React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
15301
15319
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
15302
15320
|
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
15303
15321
|
React.createElement("canvas", { ref: canvasRef }))),
|
15304
|
-
React.createElement(FormatImage$1, { loading: 'lazy', className:
|
15322
|
+
React.createElement(FormatImage$1, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
|
15305
15323
|
React.createElement("div", { className: 'list-content-listItem-info' },
|
15306
15324
|
React.createElement("div", { className: `${'list-content-listItem-info-title'} ${priceText ? 'list-content-listItem-info-nowrap' : ''}`, style: textStyles === null || textStyles === void 0 ? void 0 : textStyles.title, dangerouslySetInnerHTML: {
|
15307
15325
|
__html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -15412,12 +15430,12 @@ Made in Italy` })));
|
|
15412
15430
|
* @Author: binruan@chatlabs.com
|
15413
15431
|
* @Date: 2024-01-10 10:58:24
|
15414
15432
|
* @LastEditors: binruan@chatlabs.com
|
15415
|
-
* @LastEditTime: 2025-02-
|
15433
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
15416
15434
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15417
15435
|
*
|
15418
15436
|
*/
|
15419
15437
|
const WaterFall = (props) => {
|
15420
|
-
var _a
|
15438
|
+
var _a;
|
15421
15439
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
|
15422
15440
|
const { backMainFeed } = useEventReport();
|
15423
15441
|
const modalEleRef = React.useRef(null);
|
@@ -15506,7 +15524,7 @@ Made in Italy` })));
|
|
15506
15524
|
display: openHashtag ? 'block' : 'none'
|
15507
15525
|
} },
|
15508
15526
|
React.createElement(Navbar$1, { icon: img$6, styles: { top: '32px' }, textStyle: (_a = props === null || props === void 0 ? void 0 : props.textStyles) === null || _a === void 0 ? void 0 : _a.hashTagTitle, onClose: handleClose }),
|
15509
|
-
(
|
15527
|
+
(props === null || props === void 0 ? void 0 : props.openFixedSize) || (props === null || props === void 0 ? void 0 : props.openFixedSize) === undefined ? (React.createElement(WaterfallList, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props))) : (React.createElement(WaterfallList$1, Object.assign({ key: waterFallData, reportTagsView: reportTagsView }, props)))), modalEleRef.current);
|
15510
15528
|
};
|
15511
15529
|
var WaterFall$1 = React.memo(WaterFall);
|
15512
15530
|
|
@@ -15514,7 +15532,7 @@ Made in Italy` })));
|
|
15514
15532
|
* @Author: binruan@chatlabs.com
|
15515
15533
|
* @Date: 2024-01-15 19:03:09
|
15516
15534
|
* @LastEditors: binruan@chatlabs.com
|
15517
|
-
* @LastEditTime: 2025-02-
|
15535
|
+
* @LastEditTime: 2025-02-28 09:59:36
|
15518
15536
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
|
15519
15537
|
*
|
15520
15538
|
*/
|
@@ -15587,7 +15605,8 @@ Made in Italy` })));
|
|
15587
15605
|
paddingRight: 20,
|
15588
15606
|
paddingBottom: 20
|
15589
15607
|
},
|
15590
|
-
openFixedSize:
|
15608
|
+
openFixedSize: true,
|
15609
|
+
fixedSizeRatio: '1'
|
15591
15610
|
}
|
15592
15611
|
},
|
15593
15612
|
w: 100,
|
@@ -16963,7 +16982,7 @@ Made in Italy` })));
|
|
16963
16982
|
* @Author: binruan@chatlabs.com
|
16964
16983
|
* @Date: 2025-01-14 16:22:35
|
16965
16984
|
* @LastEditors: binruan@chatlabs.com
|
16966
|
-
* @LastEditTime: 2025-
|
16985
|
+
* @LastEditTime: 2025-02-26 11:44:00
|
16967
16986
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Click\material.tsx
|
16968
16987
|
*
|
16969
16988
|
*/
|
@@ -16978,7 +16997,7 @@ Made in Italy` })));
|
|
16978
16997
|
},
|
16979
16998
|
defaulSetting: {
|
16980
16999
|
props: {
|
16981
|
-
content: '<p><strong><span style="font-size:14px"><span style="line-height:3">Your Cookie Preferences</span></span></strong></p><p>We use cookie, including third-party cookies, to ensure the proper functioning and security of this site, to analyse its use, and to show you personalised content. You can authorise the use of all cookies by clicking on "Accept all cookies". If you click on "Reject all cookies", we will only use cookies necessary for the proper functioning and security of this site. To personalise on adjust your preferences at any time, click on "Cookies Settings" below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</p><p></p>',
|
17000
|
+
content: '<p><strong><span style="font-size:14px"><span style="line-height:3">Your Cookie Preferences</span></span></strong></p><p><span style="font-size:13px"><span style="line-height:1.7">We use cookie, including third-party cookies, to ensure the proper functioning and security of this site, to analyse its use, and to show you personalised content. You can authorise the use of all cookies by clicking on "Accept all cookies". If you click on "Reject all cookies", we will only use cookies necessary for the proper functioning and security of this site. To personalise on adjust your preferences at any time, click on "Cookies Settings" below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</span></span></p><p></p>',
|
16982
17001
|
acceptButton: {
|
16983
17002
|
text: 'Accept all cookies',
|
16984
17003
|
style: {
|
@@ -17124,7 +17143,7 @@ Made in Italy` })));
|
|
17124
17143
|
* @Author: binruan@chatlabs.com
|
17125
17144
|
* @Date: 2025-01-14 16:22:35
|
17126
17145
|
* @LastEditors: binruan@chatlabs.com
|
17127
|
-
* @LastEditTime: 2025-02-
|
17146
|
+
* @LastEditTime: 2025-02-26 11:39:59
|
17128
17147
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Swipe\material.tsx
|
17129
17148
|
*
|
17130
17149
|
*/
|
@@ -17139,7 +17158,7 @@ Made in Italy` })));
|
|
17139
17158
|
},
|
17140
17159
|
defaulSetting: {
|
17141
17160
|
props: {
|
17142
|
-
content: '<p><span style="font-
|
17161
|
+
content: '<p><strong><span style="font-size:18px"><span style="line-height:1.7">Your Cookie Preferences</span></span></strong></p><p><span style="line-height:1.7"><span style="font-size:13px">We use cookie, including third-party cookies, to ensure the proper functioning and security of this site, to analyse its use, and to show you personalised content. You can authorise the use of all cookies by clicking on 'Accept all cookies'. If you click on 'Reject all cookies', we will only use cookies necessary for the proper functioning and security of this site. To personalise or adjust your preferences at any time, click on 'Cookies Settings' below or at the bottom of any Fendi.com webpage. For more information, <u>read our Cookie Policy</u>.</span></span></p>'
|
17143
17162
|
},
|
17144
17163
|
style: {
|
17145
17164
|
backgroundColor: '#fff',
|