@alipay/ams-checkout 0.0.1694675458-dev.1 → 0.0.1694675458-dev.2
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,8 +31,7 @@ var _ref = queryParse() || {},
|
|
31
31
|
rebuild = _ref.rebuild,
|
32
32
|
scene = _ref.scene,
|
33
33
|
region = _ref.region;
|
34
|
-
|
35
|
-
innerHeight = _window.innerHeight;
|
34
|
+
window.changingPageHeight = window.innerHeight;
|
36
35
|
var ComponentApp = /*#__PURE__*/function () {
|
37
36
|
function ComponentApp() {
|
38
37
|
_classCallCheck(this, ComponentApp);
|
@@ -411,15 +410,16 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
411
410
|
}
|
412
411
|
}, {
|
413
412
|
key: "resizeListener",
|
414
|
-
value: function resizeListener() {
|
413
|
+
value: function resizeListener(e) {
|
414
|
+
var _e$target, _e$target2;
|
415
415
|
var cashier = document.getElementById(COMPONENT_CONTAINER_ID);
|
416
416
|
cashier.style.transition = 'none';
|
417
417
|
this.dispatchToApp({
|
418
418
|
context: {
|
419
419
|
event: 'renderResize',
|
420
420
|
data: {
|
421
|
-
heightOfVisible: window.innerHeight,
|
422
|
-
widthOfVisible: window.innerWidth
|
421
|
+
heightOfVisible: (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.innerHeight) || window.innerHeight,
|
422
|
+
widthOfVisible: (e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.innerWidth) || window.innerWidth
|
423
423
|
}
|
424
424
|
}
|
425
425
|
});
|
@@ -705,7 +705,7 @@ var ComponentApp = /*#__PURE__*/function () {
|
|
705
705
|
queryResult: res,
|
706
706
|
sessionResult: (_this$_renderParams2 = this._renderParams) === null || _this$_renderParams2 === void 0 ? void 0 : _this$_renderParams2.paymentSessionMetaData,
|
707
707
|
paymentSessionData: (_this$_renderParams3 = this._renderParams) === null || _this$_renderParams3 === void 0 ? void 0 : _this$_renderParams3.sessionData,
|
708
|
-
heightOfVisible: Math.max(
|
708
|
+
heightOfVisible: Math.max(window.changingPageHeight, window.innerHeight),
|
709
709
|
renderDisplayType: (_this$_renderParams4 = this._renderParams) === null || _this$_renderParams4 === void 0 ? void 0 : _this$_renderParams4.renderDisplayType,
|
710
710
|
appearance: (_this$_renderParams5 = this._renderParams) === null || _this$_renderParams5 === void 0 ? void 0 : _this$_renderParams5.appearance,
|
711
711
|
envInfo: {
|
package/esm/util/index.js
CHANGED
@@ -236,7 +236,7 @@ var amsSetSize = function amsSetSize(event, dom) {
|
|
236
236
|
var componentContainerId = 'ams-component-container';
|
237
237
|
var _dom = dom || document.getElementById(componentContainerId);
|
238
238
|
_dom.style.fontSize = "".concat(getDesignFontSize(), "px");
|
239
|
-
|
239
|
+
window.changingPageHeight = window.innerHeight;
|
240
240
|
// eslint-disable-next-line no-empty
|
241
241
|
} catch (error) {}
|
242
242
|
};
|
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"@alipay/ams-checkout","version":"0.0.1694675458-dev.
|
1
|
+
{"name":"@alipay/ams-checkout","version":"0.0.1694675458-dev.2","description":"","author":"","main":"esm/index.js","module":"esm/index.js","typings":"esm/index.d.ts","files":["dist","esm","LEGAL.md","LICENSE","README.md"],"scripts":{"build":"father build","ci":"npm run lint","cov":"jest --coverage","format":"prettier --write --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx,md,json,css,less}\"","lint":"eslint ./src","test":"jest"},"dependencies":{"axios":"^1.3.4","uuid":"^9.0.0"},"devDependencies":{"@alipay/jshield-apdid":"^2.0.3","@babel/core":"^7.20.7","@babel/preset-env":"^7.20.2","@testing-library/jest-dom":"^5.1.1","@testing-library/react":"^9.5.0","@types/jest":"^29.2.4","@types/uuid":"^9.0.0","@typescript-eslint/eslint-plugin":"latest","@typescript-eslint/parser":"^5.60.0","babel-jest":"^29.3.1","babel-loader":"^9.1.0","babel-plugin-import":"^1.13.0","eslint":"^8.36.0","eslint-plugin-prettier":"latest","father":"^4.2.3","jest":"^29.5.0","jest-environment-jsdom":"^29.3.1","prettier":"^2.8.4","prettier-plugin-organize-imports":"^3.2.3","prettier-plugin-packagejson":"^2.4.5","ts-jest":"^29.0.3","ts-node":"^10.9.1","typescript":"^4.9.5"},"engines":{},"publishConfig":{"access":"public"}}
|