pb-sxp-ui 1.15.20-alpha.2 → 1.15.20-alpha.4

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.js CHANGED
@@ -4,7 +4,6 @@ import pako from 'pako';
4
4
  import React, { useContext, useMemo, memo, useEffect, createContext, useState, useRef, useCallback, forwardRef, useImperativeHandle, useLayoutEffect } from 'react';
5
5
  import qs from 'qs';
6
6
  import EventEmitter from 'eventemitter3';
7
- import CryptoJS from 'crypto-js';
8
7
  import { css } from '@emotion/css';
9
8
  import * as ReactDOM from 'react-dom';
10
9
  import ReactDOM__default from 'react-dom';
@@ -611,25 +610,6 @@ const Consent$3 = ({ width = window.innerWidth, height = window.innerHeight, pri
611
610
  };
612
611
  var Consent$4 = memo(Consent$3);
613
612
 
614
- /*
615
- * @Author: binruan@chatlabs.com
616
- * @Date: 2025-03-24 17:20:35
617
- * @LastEditors: binruan@chatlabs.com
618
- * @LastEditTime: 2025-04-27 13:43:15
619
- * @FilePath: \pb-sxp-ui\src\core\utils\cryptojs.ts
620
- *
621
- */
622
- // 使用CryptoJS实现
623
- function encrypt(text, key) {
624
- const encrypted = CryptoJS.AES.encrypt(text, CryptoJS.enc.Utf8.parse(key), // 密钥
625
- {
626
- iv: CryptoJS.enc.Utf8.parse(key), // IV是密钥的字节
627
- mode: CryptoJS.mode.CBC,
628
- padding: CryptoJS.pad.Pkcs7
629
- });
630
- return encrypted.ciphertext.toString(CryptoJS.enc.Base64);
631
- }
632
-
633
613
  const SxpDataSourceContext = createContext({
634
614
  rtcList: [],
635
615
  tagList: []
@@ -744,10 +724,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
744
724
  // 事件上报优化
745
725
  // Beacon API 用于发送异步和非阻塞请求到服务器。这类请求不需要响应。
746
726
  if (options.type === 'beacon' && navigator.sendBeacon) {
747
- return navigator.sendBeacon(`${url}/api/${path}`, new Blob([
748
- encrypt(JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId })), 'dcAR82I0b8sgwCku')
749
- ], {
750
- type: 'application/json;charset=UTF-8'
727
+ return navigator.sendBeacon(`${url}/api/${path}`, new Blob([JSON.stringify(Object.assign(Object.assign(Object.assign({}, options.body), bffDataSource.headers), { 'x-user-id': fakeUserId }))], {
728
+ type: 'text/plain'
751
729
  }));
752
730
  }
753
731
  return window