pb-sxp-ui 1.15.8 → 1.15.9
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 +24 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +24 -6
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +19 -2
- package/es/materials/sxp/consentPopup/Click/material.js +1 -1
- package/es/materials/sxp/consentPopup/Swipe/material.js +1 -1
- package/lib/core/context/SxpDataSourceProvider.js +19 -2
- 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.cjs
CHANGED
@@ -759,6 +759,24 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
759
759
|
.then((res) => res.json())
|
760
760
|
.catch((err) => Promise.reject(err));
|
761
761
|
}, [bffDataSource, fakeUserId]);
|
762
|
+
// bff API admin 请求方法
|
763
|
+
const bffFetchAdmin = React.useCallback((path, options) => {
|
764
|
+
if (!bffDataSource)
|
765
|
+
return;
|
766
|
+
const url = bffDataSource.url;
|
767
|
+
if (options === null || options === void 0 ? void 0 : options.query) {
|
768
|
+
const queryString = qs.stringify(options.query);
|
769
|
+
path = `${path}?${queryString}`;
|
770
|
+
}
|
771
|
+
return window
|
772
|
+
.fetch(`${url}/admin/${path}`, {
|
773
|
+
headers: Object.assign({ 'Content-Type': 'application/json' }, bffDataSource.headers),
|
774
|
+
method: options.method,
|
775
|
+
body: JSON.stringify(options.body)
|
776
|
+
})
|
777
|
+
.then((res) => res.json())
|
778
|
+
.catch((err) => Promise.reject(err));
|
779
|
+
}, [bffDataSource]);
|
762
780
|
// 获取推荐视频数据
|
763
781
|
const getRecommendVideos = React.useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
|
764
782
|
var _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
@@ -787,7 +805,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
787
805
|
const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
|
788
806
|
var _v, _w, _x, _y, _z, _0;
|
789
807
|
query.pageNum = pageNum;
|
790
|
-
result = yield (
|
808
|
+
result = yield (bffFetchAdmin === null || bffFetchAdmin === void 0 ? void 0 : bffFetchAdmin('recommend/direct_page', { method: 'POST', body: query }));
|
791
809
|
if (!(result === null || result === void 0 ? void 0 : result.success)) {
|
792
810
|
return undefined;
|
793
811
|
}
|
@@ -827,7 +845,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
827
845
|
return Object.assign(Object.assign({}, result.data), { recList: list });
|
828
846
|
}
|
829
847
|
return result === null || result === void 0 ? void 0 : result.data;
|
830
|
-
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId]);
|
848
|
+
}), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList, channel, chatlabsId, bffFetchAdmin]);
|
831
849
|
const loadVideos = React.useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
|
832
850
|
var _1, _2, _3, _4;
|
833
851
|
if (rtcList.length <= 0) {
|
@@ -16970,7 +16988,7 @@ var ClickComponent = React.memo(Click$1);
|
|
16970
16988
|
* @Author: binruan@chatlabs.com
|
16971
16989
|
* @Date: 2025-01-14 16:22:35
|
16972
16990
|
* @LastEditors: binruan@chatlabs.com
|
16973
|
-
* @LastEditTime: 2025-
|
16991
|
+
* @LastEditTime: 2025-02-26 11:44:00
|
16974
16992
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Click\material.tsx
|
16975
16993
|
*
|
16976
16994
|
*/
|
@@ -16985,7 +17003,7 @@ const Click = createMaterial(ClickComponent, {
|
|
16985
17003
|
},
|
16986
17004
|
defaulSetting: {
|
16987
17005
|
props: {
|
16988
|
-
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>',
|
17006
|
+
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>',
|
16989
17007
|
acceptButton: {
|
16990
17008
|
text: 'Accept all cookies',
|
16991
17009
|
style: {
|
@@ -17131,7 +17149,7 @@ var SwipeComponent = React.memo(Swipe$1);
|
|
17131
17149
|
* @Author: binruan@chatlabs.com
|
17132
17150
|
* @Date: 2025-01-14 16:22:35
|
17133
17151
|
* @LastEditors: binruan@chatlabs.com
|
17134
|
-
* @LastEditTime: 2025-02-
|
17152
|
+
* @LastEditTime: 2025-02-26 11:39:59
|
17135
17153
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Swipe\material.tsx
|
17136
17154
|
*
|
17137
17155
|
*/
|
@@ -17146,7 +17164,7 @@ const Swipe = createMaterial(SwipeComponent, {
|
|
17146
17164
|
},
|
17147
17165
|
defaulSetting: {
|
17148
17166
|
props: {
|
17149
|
-
content: '<p><span style="font-
|
17167
|
+
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>'
|
17150
17168
|
},
|
17151
17169
|
style: {
|
17152
17170
|
backgroundColor: '#fff',
|