pb-sxp-ui 1.19.15 → 1.19.17

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
@@ -19045,6 +19045,11 @@ Made in Italy` })));
19045
19045
  const dvhToPx = (dvh) => {
19046
19046
  return Math.round((dvh / 100) * document.documentElement.clientHeight);
19047
19047
  };
19048
+ // 检测是否启用了系统字体缩放
19049
+ const fontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
19050
+ const isScaled = fontSize !== 52; // 默认 1rem = 16px
19051
+ // 检测是否处于 Display Zoom 模式(通过屏幕宽高比间接判断)
19052
+ const isZoomed = screen.width <= 375 && screen.height <= 667 && window.devicePixelRatio < 3;
19048
19053
  const systemInfo = {
19049
19054
  visualViewport: (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height,
19050
19055
  innerHeight: window.innerHeight,
@@ -19052,12 +19057,15 @@ Made in Italy` })));
19052
19057
  screenHeight: window.screen.height,
19053
19058
  bodyHeight: (_b = document === null || document === void 0 ? void 0 : document.body) === null || _b === void 0 ? void 0 : _b.clientHeight,
19054
19059
  agent: navigator.userAgent,
19055
- version: '1.19.14',
19060
+ version: '1.19.17',
19056
19061
  safeArea: getHeightWithSafeArea(),
19057
19062
  dvh: dvhToPx(100),
19058
19063
  dvhInPx: getDvhInPx(),
19059
19064
  vhInPx: getVhInPx(),
19060
- fillAvailableInPx: getFillAvailableInPx()
19065
+ fillAvailableInPx: getFillAvailableInPx(),
19066
+ isScaled,
19067
+ isZoomed,
19068
+ meta: `${window === null || window === void 0 ? void 0 : window.Instagram},${window === null || window === void 0 ? void 0 : window.Facebook}`
19061
19069
  };
19062
19070
  console.log(systemInfo, 'fundebug-init--------------------->systemInfo');
19063
19071
  if ('fundebug' in window) {
@@ -19065,6 +19073,8 @@ Made in Italy` })));
19065
19073
  }
19066
19074
  const updateHeight = React.useCallback(() => {
19067
19075
  var _a, _b, _c;
19076
+ const fontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
19077
+ const isScaled = fontSize !== 52; // 默认 1rem = 16px
19068
19078
  const systemInfo = {
19069
19079
  visualViewport: (_a = window.visualViewport) === null || _a === void 0 ? void 0 : _a.height,
19070
19080
  innerHeight: window.innerHeight,
@@ -19072,12 +19082,15 @@ Made in Italy` })));
19072
19082
  screenHeight: window.screen.height,
19073
19083
  bodyHeight: (_b = document === null || document === void 0 ? void 0 : document.body) === null || _b === void 0 ? void 0 : _b.clientHeight,
19074
19084
  agent: navigator.userAgent,
19075
- version: '1.19.15',
19085
+ version: '1.19.17',
19076
19086
  safeArea: getHeightWithSafeArea(),
19077
19087
  dvh: dvhToPx(100),
19078
19088
  dvhInPx: getDvhInPx(),
19079
19089
  vhInPx: getVhInPx(),
19080
- fillAvailableInPx: getFillAvailableInPx()
19090
+ fillAvailableInPx: getFillAvailableInPx(),
19091
+ isScaled,
19092
+ isZoomed,
19093
+ meta: `${window === null || window === void 0 ? void 0 : window.Instagram},${window === null || window === void 0 ? void 0 : window.Facebook}`
19081
19094
  };
19082
19095
  console.log(systemInfo, 'fundebug-resize--------------------->systemInfo');
19083
19096
  if ('fundebug' in window) {