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/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 (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('v1/recommend/list', { method: 'POST', body: query }));
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) {
@@ -16963,7 +16981,7 @@ Made in Italy` })));
16963
16981
  * @Author: binruan@chatlabs.com
16964
16982
  * @Date: 2025-01-14 16:22:35
16965
16983
  * @LastEditors: binruan@chatlabs.com
16966
- * @LastEditTime: 2025-01-15 17:09:49
16984
+ * @LastEditTime: 2025-02-26 11:44:00
16967
16985
  * @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Click\material.tsx
16968
16986
  *
16969
16987
  */
@@ -16978,7 +16996,7 @@ Made in Italy` })));
16978
16996
  },
16979
16997
  defaulSetting: {
16980
16998
  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 &quot;Accept all cookies&quot;. If you click on &quot;Reject all cookies&quot;, 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 &quot;Cookies Settings&quot; below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</p><p></p>',
16999
+ 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 &quot;Accept all cookies&quot;. If you click on &quot;Reject all cookies&quot;, 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 &quot;Cookies Settings&quot; below or at the bottom of any Fendi.com webpage. For more information, read our Cookie Policy.</span></span></p><p></p>',
16982
17000
  acceptButton: {
16983
17001
  text: 'Accept all cookies',
16984
17002
  style: {
@@ -17124,7 +17142,7 @@ Made in Italy` })));
17124
17142
  * @Author: binruan@chatlabs.com
17125
17143
  * @Date: 2025-01-14 16:22:35
17126
17144
  * @LastEditors: binruan@chatlabs.com
17127
- * @LastEditTime: 2025-02-24 14:09:52
17145
+ * @LastEditTime: 2025-02-26 11:39:59
17128
17146
  * @FilePath: \pb-sxp-ui\src\materials\sxp\consentPopup\Swipe\material.tsx
17129
17147
  *
17130
17148
  */
@@ -17139,7 +17157,7 @@ Made in Italy` })));
17139
17157
  },
17140
17158
  defaulSetting: {
17141
17159
  props: {
17142
- content: '<p><span style="font- size: 14px"><strong><span style="line - height: 3">Your Cookie Preferences</span></strong></span></p><p><span style="line- height: 1"><span style="font- size: 12px">We use cookie, including third-party cookies, to</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">ensure the proper functioning and security of</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">this site, to analyse its use, and to show you</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">personalised content.</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">You can authorise the use of all cookies by</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">clicking on &#x27;Accept all cookies&#x27;. If you click on</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">&#x27;Reject all cookies&#x27;, we will only use cookies</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">necessary for the proper functioning and </span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">security of this site. To personalise or adjust</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">your preferences at any time, click on &#x27;Cookies</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">Settings&#x27; below or at the bottom of any</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">Fendi.com webpage.</span></span></p><p><span style="line - height: 1"><span style="font - size: 12px">For more information, <u>read our Cookie Policy</u>.</span></span></p>'
17160
+ 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 &#x27;Accept all cookies&#x27;. If you click on &#x27;Reject all cookies&#x27;, 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 &#x27;Cookies Settings&#x27; below or at the bottom of any Fendi.com webpage. For more information, <u>read our Cookie Policy</u>.</span></span></p>'
17143
17161
  },
17144
17162
  style: {
17145
17163
  backgroundColor: '#fff',