pb-sxp-ui 1.19.20 → 1.20.0

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.
@@ -31,7 +31,7 @@ export function useVisibleHeight() {
31
31
  const ratio = visibleHeight / screenHeight;
32
32
  const threshold = 0.9;
33
33
  const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
34
- const isRatio = ratio >= threshold;
34
+ const isRatio = ratio >= threshold && ratio !== 1;
35
35
  const finalHeight = isRatio ? Math.round(h) : visibleHeight;
36
36
  const b = screenHeight - Math.round(h);
37
37
  if (isRatio) {
@@ -59,19 +59,6 @@ export function useVisibleHeight() {
59
59
  else {
60
60
  setBottomHeight(0);
61
61
  }
62
- if ('fundebug' in window) {
63
- const systemInfo = {
64
- ratio,
65
- h,
66
- finalHeight,
67
- visibleHeight,
68
- screenHeight,
69
- isInstagram,
70
- isFacebook,
71
- ua
72
- };
73
- window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
74
- }
75
62
  setVisibleHeight(finalHeight);
76
63
  }, [getVisibleContentHeight]);
77
64
  useEffect(() => {
@@ -34,7 +34,7 @@ function useVisibleHeight() {
34
34
  const ratio = visibleHeight / screenHeight;
35
35
  const threshold = 0.9;
36
36
  const h = screenHeight >= 900 ? screenHeight * 0.8 : screenHeight * 0.79;
37
- const isRatio = ratio >= threshold;
37
+ const isRatio = ratio >= threshold && ratio !== 1;
38
38
  const finalHeight = isRatio ? Math.round(h) : visibleHeight;
39
39
  const b = screenHeight - Math.round(h);
40
40
  if (isRatio) {
@@ -62,19 +62,6 @@ function useVisibleHeight() {
62
62
  else {
63
63
  setBottomHeight(0);
64
64
  }
65
- if ('fundebug' in window) {
66
- const systemInfo = {
67
- ratio,
68
- h,
69
- finalHeight,
70
- visibleHeight,
71
- screenHeight,
72
- isInstagram,
73
- isFacebook,
74
- ua
75
- };
76
- window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
77
- }
78
65
  setVisibleHeight(finalHeight);
79
66
  }, [getVisibleContentHeight]);
80
67
  (0, react_1.useEffect)(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pb-sxp-ui",
3
- "version": "1.19.20",
3
+ "version": "1.20.0",
4
4
  "description": "React enterprise-class UI components",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",