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.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) {
|
@@ -16948,7 +16966,7 @@ var ClickComponent = memo(Click$1);
|
|
16948
16966
|
* @Author: binruan@chatlabs.com
|
16949
16967
|
* @Date: 2025-01-14 16:22:35
|
16950
16968
|
* @LastEditors: binruan@chatlabs.com
|
16951
|
-
* @LastEditTime: 2025-
|
16969
|
+
* @LastEditTime: 2025-02-26 11:44:00
|
16952
16970
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Click\material.tsx
|
16953
16971
|
*
|
16954
16972
|
*/
|
@@ -16963,7 +16981,7 @@ const Click = createMaterial(ClickComponent, {
|
|
16963
16981
|
},
|
16964
16982
|
defaulSetting: {
|
16965
16983
|
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>',
|
16984
|
+
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
16985
|
acceptButton: {
|
16968
16986
|
text: 'Accept all cookies',
|
16969
16987
|
style: {
|
@@ -17109,7 +17127,7 @@ var SwipeComponent = memo(Swipe$1);
|
|
17109
17127
|
* @Author: binruan@chatlabs.com
|
17110
17128
|
* @Date: 2025-01-14 16:22:35
|
17111
17129
|
* @LastEditors: binruan@chatlabs.com
|
17112
|
-
* @LastEditTime: 2025-02-
|
17130
|
+
* @LastEditTime: 2025-02-26 11:39:59
|
17113
17131
|
* @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Swipe\material.tsx
|
17114
17132
|
*
|
17115
17133
|
*/
|
@@ -17124,7 +17142,7 @@ const Swipe = createMaterial(SwipeComponent, {
|
|
17124
17142
|
},
|
17125
17143
|
defaulSetting: {
|
17126
17144
|
props: {
|
17127
|
-
content: '<p><span style="font-
|
17145
|
+
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
17146
|
},
|
17129
17147
|
style: {
|
17130
17148
|
backgroundColor: '#fff',
|