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/index.js
CHANGED
@@ -737,6 +737,24 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
737
737
|
.then((res) => res.json())
|
738
738
|
.catch((err) => Promise.reject(err));
|
739
739
|
}, [bffDataSource, fakeUserId]);
|
740
|
+
// bff API admin 请求方法
|
741
|
+
const bffFetchAdmin = useCallback((path, options) => {
|
742
|
+
if (!bffDataSource)
|
743
|
+
return;
|
744
|
+
const url = bffDataSource.url;
|
745
|
+
if (options === null || options === void 0 ? void 0 : options.query) {
|
746
|
+
const queryString = qs.stringify(options.query);
|
747
|
+
path = `${path}?${queryString}`;
|
748
|
+
}
|
749
|
+
return window
|
750
|
+
.fetch(`${url}/admin/${path}`, {
|
751
|
+
headers: Object.assign({ 'Content-Type': 'application/json' }, bffDataSource.headers),
|
752
|
+
method: options.method,
|
753
|
+
body: JSON.stringify(options.body)
|
754
|
+
})
|
755
|
+
.then((res) => res.json())
|
756
|
+
.catch((err) => Promise.reject(err));
|
757
|
+
}, [bffDataSource]);
|
740
758
|
// 获取推荐视频数据
|
741
759
|
const getRecommendVideos = useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
|
742
760
|
var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
@@ -765,7 +783,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
765
783
|
const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
|
766
784
|
var _v, _w, _x, _y, _z, _0;
|
767
785
|
query.pageNum = pageNum;
|
768
|
-
result = yield (
|
786
|
+
result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
|
769
787
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
770
788
|
return undefined;
|
771
789
|
}
|
@@ -805,7 +823,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
805
823
|
return Object.assign(Object.assign({}, result.data), { recList: list });
|
806
824
|
}
|
807
825
|
return result === null || result === void 0 ? void 0 : result.data;
|
808
|
-
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId]);
|
826
|
+
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
|
809
827
|
const loadVideos = useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
|
810
828
|
var _1, _2, _3, _4;
|
811
829
|
if (rtcList.length <= 0) {
|
@@ -13338,7 +13356,7 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
|
|
13338
13356
|
* @Author: binruan@chatlabs.com
|
13339
13357
|
* @Date: 2024-04-07 14:07:12
|
13340
13358
|
* @LastEditors: binruan@chatlabs.com
|
13341
|
-
* @LastEditTime: 2025-02-
|
13359
|
+
* @LastEditTime: 2025-02-28 09:49:43
|
13342
13360
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
|
13343
13361
|
*
|
13344
13362
|
*/
|
@@ -13365,7 +13383,7 @@ var settingRender$7 = [
|
|
13365
13383
|
{
|
13366
13384
|
type: 'HashTagFixedSize',
|
13367
13385
|
label: '固定宽高',
|
13368
|
-
name: ['props'
|
13386
|
+
name: ['props']
|
13369
13387
|
}
|
13370
13388
|
]
|
13371
13389
|
},
|
@@ -15173,7 +15191,7 @@ var img$6 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeA
|
|
15173
15191
|
|
15174
15192
|
const WaterfallFlowItem = (props) => {
|
15175
15193
|
var _a;
|
15176
|
-
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize } = props;
|
15194
|
+
const { rec, index, list, reportTagsView, textStyles, space, openFixedSize, fixedSizeRatio } = props;
|
15177
15195
|
const { swiperRef, setRtcList, setOpenHashtag, sxpParameter, globalConfig } = useSxpDataSource();
|
15178
15196
|
const [showVideo, setShowVideo] = useState(false);
|
15179
15197
|
const imgDom = useRef(null);
|
@@ -15282,11 +15300,11 @@ const WaterfallFlowItem = (props) => {
|
|
15282
15300
|
}, 0);
|
15283
15301
|
};
|
15284
15302
|
return (React.createElement("div", { ref: ref, className: 'list-content-listItem', key: index, onClick: handleClickToDetail, style: { marginBottom: space } },
|
15285
|
-
React.createElement("div", { className:
|
15303
|
+
React.createElement("div", { className: fixedSizeRatio === '1' ? 'list-content-listItem-picture' : 'list-content-listItem-picture1609' },
|
15286
15304
|
showVideo && (React.createElement("div", { style: { display: 'none' } },
|
15287
15305
|
React.createElement("video", { ref: videoDom, crossOrigin: 'anonymous', className: 'list-content-listItem-picture-img' }),
|
15288
15306
|
React.createElement("canvas", { ref: canvasRef }))),
|
15289
|
-
React.createElement(FormatImage$1, { loading: 'lazy', className:
|
15307
|
+
React.createElement(FormatImage$1, { loading: 'lazy', className: fixedSizeRatio === '1' ? 'list-content-listItem-picture-img' : 'list-content-listItem-picture1609-img', ref: imgDom })),
|
15290
15308
|
React.createElement("div", { className: 'list-content-listItem-info' },
|
15291
15309
|
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: {
|
15292
15310
|
__html: setFontForText(title, textStyles === null || textStyles === void 0 ? void 0 : textStyles.title)
|
@@ -15397,12 +15415,12 @@ function WaterfallList(_a) {
|
|
15397
15415
|
* @Author: binruan@chatlabs.com
|
15398
15416
|
* @Date: 2024-01-10 10:58:24
|
15399
15417
|
* @LastEditors: binruan@chatlabs.com
|
15400
|
-
* @LastEditTime: 2025-02-
|
15418
|
+
* @LastEditTime: 2025-02-28 10:00:31
|
15401
15419
|
* @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\WaterFall\index.tsx
|
15402
15420
|
*
|
15403
15421
|
*/
|
15404
15422
|
const WaterFall = (props) => {
|
15405
|
-
var _a
|
15423
|
+
var _a;
|
15406
15424
|
const { waterFallData, setOpenHashtag, openHashtag, swiperRef, setWaterFallData, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, setCacheRtcList, setIsFromHashtag, isFromHashtag, bffEventReport, themeTag, selectTag, bffFbReport } = useSxpDataSource();
|
15407
15425
|
const { backMainFeed } = useEventReport();
|
15408
15426
|
const modalEleRef = useRef(null);
|
@@ -15491,7 +15509,7 @@ const WaterFall = (props) => {
|
|
15491
15509
|
display: openHashtag ? 'block' : 'none'
|
15492
15510
|
} },
|
15493
15511
|
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 }),
|
15494
|
-
(
|
15512
|
+
(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);
|
15495
15513
|
};
|
15496
15514
|
var WaterFall$1 = memo(WaterFall);
|
15497
15515
|
|
@@ -15499,7 +15517,7 @@ var WaterFall$1 = memo(WaterFall);
|
|
15499
15517
|
* @Author: binruan@chatlabs.com
|
15500
15518
|
* @Date: 2024-01-15 19:03:09
|
15501
15519
|
* @LastEditors: binruan@chatlabs.com
|
15502
|
-
* @LastEditTime: 2025-02-
|
15520
|
+
* @LastEditTime: 2025-02-28 09:59:36
|
15503
15521
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
|
15504
15522
|
*
|
15505
15523
|
*/
|
@@ -15572,7 +15590,8 @@ const HashTag = createMaterial(HashTagComponent, {
|
|
15572
15590
|
paddingRight: 20,
|
15573
15591
|
paddingBottom: 20
|
15574
15592
|
},
|
15575
|
-
openFixedSize:
|
15593
|
+
openFixedSize: true,
|
15594
|
+
fixedSizeRatio: '1'
|
15576
15595
|
}
|
15577
15596
|
},
|
15578
15597
|
w: 100,
|
@@ -16948,7 +16967,7 @@ var ClickComponent = memo(Click$1);
|
|
16948
16967
|
* @Author: binruan@chatlabs.com
|
16949
16968
|
* @Date: 2025-01-14 16:22:35
|
16950
16969
|
* @LastEditors: binruan@chatlabs.com
|
16951
|
-
* @LastEditTime: 2025-
|
16970
|
+
* @LastEditTime: 2025-02-26 11:44:00
|
16952
16971
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Click\material.tsx
|
16953
16972
|
*
|
16954
16973
|
*/
|
@@ -16963,7 +16982,7 @@ const Click = createMaterial(ClickComponent, {
|
|
16963
16982
|
},
|
16964
16983
|
defaulSetting: {
|
16965
16984
|
props: {
|
16966
|
-
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>',
|
16985
|
+
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>',
|
16967
16986
|
acceptButton: {
|
16968
16987
|
text: 'Accept all cookies',
|
16969
16988
|
style: {
|
@@ -17109,7 +17128,7 @@ var SwipeComponent = memo(Swipe$1);
|
|
17109
17128
|
* @Author: binruan@chatlabs.com
|
17110
17129
|
* @Date: 2025-01-14 16:22:35
|
17111
17130
|
* @LastEditors: binruan@chatlabs.com
|
17112
|
-
* @LastEditTime: 2025-02-
|
17131
|
+
* @LastEditTime: 2025-02-26 11:39:59
|
17113
17132
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Swipe\material.tsx
|
17114
17133
|
*
|
17115
17134
|
*/
|
@@ -17124,7 +17143,7 @@ const Swipe = createMaterial(SwipeComponent, {
|
|
17124
17143
|
},
|
17125
17144
|
defaulSetting: {
|
17126
17145
|
props: {
|
17127
|
-
content: '<p><span style="font-
|
17146
|
+
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>'
|
17128
17147
|
},
|
17129
17148
|
style: {
|
17130
17149
|
backgroundColor: '#fff',
|