pb-sxp-ui 1.19.14 → 1.19.16
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 +23 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -9
- 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 +27 -12
- 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/components/SxpPageRender/index.js +15 -2
- package/es/core/hooks/useVisibleHeight.js +8 -7
- package/lib/core/components/SxpPageRender/index.js +15 -2
- package/lib/core/hooks/useVisibleHeight.js +8 -8
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('react-dom')
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', 'react-dom'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.ReactDOM
|
|
5
|
-
})(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, ReactDOM
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('lodash'), require('uuid'), require('pako'), require('react'), require('qs'), require('eventemitter3'), require('@emotion/css'), require('react-dom')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'lodash', 'uuid', 'pako', 'react', 'qs', 'eventemitter3', '@emotion/css', 'react-dom'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.PUI = {}, global.lodash, global.uuid$1, global.pako, global.React, global.qs, global.EventEmitter, global.css, global.ReactDOM));
|
|
5
|
+
})(this, (function (exports, lodash, uuid$1, pako, React, qs, EventEmitter, css, ReactDOM) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
var n = Object.create(null);
|
|
@@ -18993,8 +18993,6 @@ Made in Italy` })));
|
|
|
18993
18993
|
};
|
|
18994
18994
|
var NavBack$1 = React.memo(NavBack);
|
|
18995
18995
|
|
|
18996
|
-
if (fundebug)
|
|
18997
|
-
fundebug.apikey = '522a79b0a6242a8ad683cc045ec9e65bbac3a0f620561ac49d39eaad4f303618';
|
|
18998
18996
|
const useVisibleHeight = () => {
|
|
18999
18997
|
var _a, _b;
|
|
19000
18998
|
const [visibleHeight, setVisibleHeight] = React.useState(0);
|
|
@@ -19054,7 +19052,7 @@ Made in Italy` })));
|
|
|
19054
19052
|
screenHeight: window.screen.height,
|
|
19055
19053
|
bodyHeight: (_b = document === null || document === void 0 ? void 0 : document.body) === null || _b === void 0 ? void 0 : _b.clientHeight,
|
|
19056
19054
|
agent: navigator.userAgent,
|
|
19057
|
-
version: '1.19.
|
|
19055
|
+
version: '1.19.16',
|
|
19058
19056
|
safeArea: getHeightWithSafeArea(),
|
|
19059
19057
|
dvh: dvhToPx(100),
|
|
19060
19058
|
dvhInPx: getDvhInPx(),
|
|
@@ -19062,7 +19060,9 @@ Made in Italy` })));
|
|
|
19062
19060
|
fillAvailableInPx: getFillAvailableInPx()
|
|
19063
19061
|
};
|
|
19064
19062
|
console.log(systemInfo, 'fundebug-init--------------------->systemInfo');
|
|
19065
|
-
|
|
19063
|
+
if ('fundebug' in window) {
|
|
19064
|
+
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'init', { metaData: { systemInfo, otherInfo: {} } });
|
|
19065
|
+
}
|
|
19066
19066
|
const updateHeight = React.useCallback(() => {
|
|
19067
19067
|
var _a, _b, _c;
|
|
19068
19068
|
const systemInfo = {
|
|
@@ -19072,7 +19072,7 @@ Made in Italy` })));
|
|
|
19072
19072
|
screenHeight: window.screen.height,
|
|
19073
19073
|
bodyHeight: (_b = document === null || document === void 0 ? void 0 : document.body) === null || _b === void 0 ? void 0 : _b.clientHeight,
|
|
19074
19074
|
agent: navigator.userAgent,
|
|
19075
|
-
version: '1.19.
|
|
19075
|
+
version: '1.19.15',
|
|
19076
19076
|
safeArea: getHeightWithSafeArea(),
|
|
19077
19077
|
dvh: dvhToPx(100),
|
|
19078
19078
|
dvhInPx: getDvhInPx(),
|
|
@@ -19080,7 +19080,9 @@ Made in Italy` })));
|
|
|
19080
19080
|
fillAvailableInPx: getFillAvailableInPx()
|
|
19081
19081
|
};
|
|
19082
19082
|
console.log(systemInfo, 'fundebug-resize--------------------->systemInfo');
|
|
19083
|
-
|
|
19083
|
+
if ('fundebug' in window) {
|
|
19084
|
+
window === null || window === void 0 ? void 0 : window.fundebug.notify('Collect_Info', 'resize', { metaData: { systemInfo, otherInfo: {} } });
|
|
19085
|
+
}
|
|
19084
19086
|
const height = ((_c = document === null || document === void 0 ? void 0 : document.documentElement) === null || _c === void 0 ? void 0 : _c.clientHeight) || (window === null || window === void 0 ? void 0 : window.innerHeight);
|
|
19085
19087
|
setVisibleHeight(height);
|
|
19086
19088
|
}, [getHeightWithSafeArea, dvhToPx, getDvhInPx, getVhInPx, getFillAvailableInPx]);
|
|
@@ -19324,9 +19326,22 @@ Made in Italy` })));
|
|
|
19324
19326
|
const numericValue = parseInt(value) || 0;
|
|
19325
19327
|
return numericValue;
|
|
19326
19328
|
};
|
|
19329
|
+
const getDvhInPx = () => {
|
|
19330
|
+
const detector = document.createElement('div');
|
|
19331
|
+
detector.style.position = 'fixed';
|
|
19332
|
+
detector.style.bottom = `${getHeightWithSafeArea()}px`;
|
|
19333
|
+
detector.style.left = '0';
|
|
19334
|
+
detector.style.height = '100dvh';
|
|
19335
|
+
detector.style.visibility = 'hidden';
|
|
19336
|
+
detector.style.zIndex = '-1';
|
|
19337
|
+
document.body.appendChild(detector);
|
|
19338
|
+
const dvhInPx = detector.clientHeight;
|
|
19339
|
+
document.body.removeChild(detector);
|
|
19340
|
+
return dvhInPx;
|
|
19341
|
+
};
|
|
19327
19342
|
const height = React.useMemo(() => {
|
|
19328
|
-
return
|
|
19329
|
-
}, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea, containerHeight]);
|
|
19343
|
+
return getDvhInPx() - minusHeight - tagHeight - getHeightWithSafeArea();
|
|
19344
|
+
}, [minusHeight, visibleHeight, tagHeight, getHeightWithSafeArea, containerHeight, getDvhInPx]);
|
|
19330
19345
|
const visList = React.useMemo(() => {
|
|
19331
19346
|
var _a;
|
|
19332
19347
|
const list = activeIndex === 0 && !waterFallData && !isEditor && !isDiyH5
|