@alipay/ams-checkout 0.0.1754383594-dev.0 → 0.0.1755250474-dev.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.
@@ -28,10 +28,10 @@ import { EVENT } from "../../../../constant";
28
28
  import { ServiceProvider } from "../../../../foundation/service";
29
29
  import { ApplePaySdk, handleGooglePay, isSkipRenderPaymentMethod } from "../../../../plugin/component/channel";
30
30
  import { LogConfig, Logger } from "../../../../util/logger";
31
- import { queryParse } from "../../../../util";
31
+ import { device, queryParse } from "../../../../util";
32
32
  import { parseSessionData } from "../../index";
33
33
  import { oneAccount, sdkAction } from "../mock";
34
- import { generateIframeSrc as _generateIframeSrc, isElementPC, isElementPad } from "../util";
34
+ import { generateIframeSrc as _generateIframeSrc, isElementPad } from "../util";
35
35
  import BaseElementProcessor from "./baseElementProcessor";
36
36
  var logger = new Logger(LogConfig, true);
37
37
  var PaymentProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
@@ -255,7 +255,7 @@ var PaymentProcessor = /*#__PURE__*/function (_BaseElementProcessor) {
255
255
  isConnect = paymentSessionObj === null || paymentSessionObj === void 0 || (_paymentSessionObj$co = paymentSessionObj.connectFactor) === null || _paymentSessionObj$co === void 0 ? void 0 : _paymentSessionObj$co.enableConnect;
256
256
  LOCAL_MOCK = window.location.href.indexOf('LOCAL_MOCK=1') !== -1;
257
257
  _queryParse = queryParse(this.getElementUrl()), appType = _queryParse.appType;
258
- terminalType = isElementPad() ? 'WEB' : appType ? 'APP' : isElementPC() ? 'WEB' : 'WAP';
258
+ terminalType = isElementPad() ? 'WEB' : appType ? 'APP' : device.isMobile ? 'WAP' : 'WEB';
259
259
  generateActionQueryPromise = function generateActionQueryPromise() {
260
260
  return new Promise(function (resolve, reject) {
261
261
  var _displayInfo$merchant;
@@ -23,7 +23,7 @@ import { COMPONENTPLUGINID, COMPONENT_CLOSE_BLOCK_ID, COMPONENT_CLOSE_MASK_BLOCK
23
23
  import { ElementPaymentMethod } from "../../core/component/oldElement/type";
24
24
  import { queryPaymentInfo, submitPayInfo } from "../../service";
25
25
  import { ComponentSignEnum, DisplayTypeEnum, eventCodeEnum, MessageName, PlatformEnum, ProductSceneEnum, RedirectType, TargetEnum } from "../../types";
26
- import { getType, isJsonString, isPC } from "../../util";
26
+ import { getType, isJsonString, isPC, device } from "../../util";
27
27
  import { getBackScheme } from "../../util/getBackScheme";
28
28
  import { isLocalMock } from "../../util/mock";
29
29
  import { matchVersion } from "../../util/versionCompare";
@@ -71,7 +71,7 @@ var ComponentApp = /*#__PURE__*/function () {
71
71
  this.createPreloadIframeNode = function () {
72
72
  return Promise.resolve();
73
73
  };
74
- this.platform = isPC() ? PlatformEnum.desktop : PlatformEnum.mobile;
74
+ this.platform = device.isMobile ? PlatformEnum.mobile : PlatformEnum.desktop;
75
75
  this._isRetention = true;
76
76
  this._appLocationSearch = '';
77
77
  this._performanceData.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1754383594-dev.0",
3
+ "version": "0.0.1755250474-dev.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",