pb-sxp-ui 1.15.12-alpha.6 → 1.15.12-alpha.7
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 +19 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -22
- 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 +23 -25
- 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 +3 -2
- package/lib/core/context/SxpDataSourceProvider.js +3 -2
- package/package.json +1 -1
@@ -8,7 +8,6 @@ import { useIconLink } from '../components/SxpPageRender/useIconLink';
|
|
8
8
|
import SXP_EVENT_BUS, { SXP_EVENT_TYPE } from '../utils/event';
|
9
9
|
import Consent from '../components/Consent';
|
10
10
|
import { getCookie, splitUrlParams } from '../utils/tool';
|
11
|
-
import { encrypt } from '../utils/cryptojs';
|
12
11
|
export const SxpDataSourceContext = createContext({
|
13
12
|
rtcList: [],
|
14
13
|
tagList: []
|
@@ -115,7 +114,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
115
114
|
}
|
116
115
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
117
116
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
118
|
-
|
117
|
+
JSON.stringify({
|
118
|
+
body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
|
119
|
+
})
|
119
120
|
], {
|
120
121
|
type: 'application/json;charset=UTF-8'
|
121
122
|
}));
|
@@ -11,7 +11,6 @@ const useIconLink_1 = require("../components/SxpPageRender/useIconLink");
|
|
11
11
|
const event_1 = tslib_1.__importStar(require("../utils/event"));
|
12
12
|
const Consent_1 = tslib_1.__importDefault(require("../components/Consent"));
|
13
13
|
const tool_1 = require("../utils/tool");
|
14
|
-
const cryptojs_1 = require("../utils/cryptojs");
|
15
14
|
exports.SxpDataSourceContext = (0, react_1.createContext)({
|
16
15
|
rtcList: [],
|
17
16
|
tagList: []
|
@@ -118,7 +117,9 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
|
|
118
117
|
}
|
119
118
|
if (options.type === 'beacon' && navigator.sendBeacon) {
|
120
119
|
return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
|
121
|
-
|
120
|
+
JSON.stringify({
|
121
|
+
body: btoa(encodeURIComponent(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))))
|
122
|
+
})
|
122
123
|
], {
|
123
124
|
type: 'application/json;charset=UTF-8'
|
124
125
|
}));
|