@alipay/ams-checkout 0.0.1730706734-dev.0 → 0.0.1730878287-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.
- package/dist/umd/ams-checkout.min.js +1 -1
- package/esm/config/index.d.ts +2 -2
- package/esm/config/index.js +5 -5
- package/esm/constant/index.d.ts +0 -6
- package/esm/constant/index.js +0 -8
- package/esm/core/bus/interface.d.ts +0 -12
- package/esm/core/bus/interface.js +2 -16
- package/esm/core/component/address.d.ts +2 -2
- package/esm/core/component/appPreloadProcessing.js +0 -2
- package/esm/core/component/ckp/index.d.ts +3 -3
- package/esm/core/component/ckp/index.js +3 -3
- package/esm/core/component/index.d.ts +5 -5
- package/esm/core/component/index.js +16 -20
- package/esm/core/drop-in/index.d.ts +2 -2
- package/esm/core/drop-in/index.js +2 -2
- package/esm/core/instance/index.d.ts +5 -5
- package/esm/core/instance/index.js +10 -11
- package/esm/index.d.ts +10 -16
- package/esm/index.js +59 -70
- package/esm/plugin/applepay/component.js +3 -3
- package/esm/plugin/applepay/service.d.ts +2 -2
- package/esm/plugin/applepay/service.js +2 -2
- package/esm/plugin/component/cashierApp.d.ts +5 -7
- package/esm/plugin/component/cashierApp.js +8 -16
- package/esm/plugin/component/channel.d.ts +4 -4
- package/esm/plugin/component/component.inline.style.d.ts +4 -4
- package/esm/plugin/component/component.inline.style.js +7 -10
- package/esm/plugin/component/component.popup.style.d.ts +6 -15
- package/esm/plugin/component/component.popup.style.js +15 -33
- package/esm/plugin/component/index.d.ts +7 -7
- package/esm/plugin/component/index.js +90 -113
- package/esm/plugin/const.js +5 -5
- package/esm/plugin/drop-in/index.d.ts +5 -5
- package/esm/plugin/drop-in/index.js +7 -7
- package/esm/plugin/payment-element/utils.d.ts +1 -1
- package/esm/plugin/payment-element/utils.js +1 -2
- package/esm/plugin/type.d.ts +4 -4
- package/esm/service/index.d.ts +0 -1
- package/esm/service/index.js +0 -2
- package/esm/types/index.d.ts +38 -240
- package/esm/types/index.js +59 -103
- package/esm/util/createIframeNode.d.ts +2 -2
- package/esm/util/createIframeNode.js +3 -3
- package/esm/util/index.d.ts +1 -1
- package/esm/util/index.js +4 -3
- package/esm/{foundation/service/security → util}/security.d.ts +2 -2
- package/esm/{foundation/service/security → util}/security.js +3 -3
- package/package.json +1 -2
- package/esm/core/bus/ability/globalData.d.ts +0 -10
- package/esm/core/bus/ability/globalData.js +0 -89
- package/esm/core/bus/ability/request.d.ts +0 -10
- package/esm/core/bus/ability/request.js +0 -151
- package/esm/core/component/element/components/address.d.ts +0 -19
- package/esm/core/component/element/components/address.js +0 -68
- package/esm/core/component/element/components/auth.d.ts +0 -17
- package/esm/core/component/element/components/auth.js +0 -59
- package/esm/core/component/element/components/payment.d.ts +0 -19
- package/esm/core/component/element/components/payment.js +0 -74
- package/esm/core/component/element/element-mock.d.ts +0 -2
- package/esm/core/component/element/element-mock.js +0 -263
- package/esm/core/component/element/index.d.ts +0 -47
- package/esm/core/component/element/index.js +0 -776
- package/esm/core/component/element/mock.d.ts +0 -3
- package/esm/core/component/element/mock.js +0 -1156
- package/esm/core/component/element/type.d.ts +0 -176
- package/esm/core/component/element/type.js +0 -34
- package/esm/core/component/element/utils.d.ts +0 -13
- package/esm/core/component/element/utils.js +0 -6
- package/esm/foundation/core/index.d.ts +0 -26
- package/esm/foundation/core/index.js +0 -301
- package/esm/foundation/index.d.ts +0 -72
- package/esm/foundation/index.js +0 -42
- package/esm/foundation/product-processor/easysafepay/deps.d.ts +0 -15
- package/esm/foundation/product-processor/easysafepay/deps.js +0 -9
- package/esm/foundation/product-processor/easysafepay/index.d.ts +0 -26
- package/esm/foundation/product-processor/easysafepay/index.js +0 -536
- package/esm/foundation/service/container/index.d.ts +0 -28
- package/esm/foundation/service/container/index.js +0 -256
- package/esm/foundation/service/container/popup.d.ts +0 -17
- package/esm/foundation/service/container/popup.js +0 -103
- package/esm/foundation/service/container/utils.d.ts +0 -7
- package/esm/foundation/service/container/utils.js +0 -48
- package/esm/foundation/service/event-bus/ability/callback.d.ts +0 -9
- package/esm/foundation/service/event-bus/ability/callback.js +0 -55
- package/esm/foundation/service/event-bus/ability/globalData.d.ts +0 -10
- package/esm/foundation/service/event-bus/ability/globalData.js +0 -89
- package/esm/foundation/service/event-bus/ability/request.d.ts +0 -10
- package/esm/foundation/service/event-bus/ability/request.js +0 -151
- package/esm/foundation/service/event-bus/ability/security.d.ts +0 -12
- package/esm/foundation/service/event-bus/ability/security.js +0 -151
- package/esm/foundation/service/event-bus/ability/tracker.d.ts +0 -9
- package/esm/foundation/service/event-bus/ability/tracker.js +0 -80
- package/esm/foundation/service/event-bus/busManager.d.ts +0 -127
- package/esm/foundation/service/event-bus/busManager.js +0 -398
- package/esm/foundation/service/event-bus/index.d.ts +0 -20
- package/esm/foundation/service/event-bus/index.js +0 -88
- package/esm/foundation/service/event-center.d.ts +0 -75
- package/esm/foundation/service/event-center.js +0 -244
- package/esm/foundation/service/global-data/index.d.ts +0 -11
- package/esm/foundation/service/global-data/index.js +0 -69
- package/esm/foundation/service/index.d.ts +0 -19
- package/esm/foundation/service/index.js +0 -82
- package/esm/foundation/service/log/index.d.ts +0 -43
- package/esm/foundation/service/log/index.js +0 -235
- package/esm/foundation/service/log/types.d.ts +0 -32
- package/esm/foundation/service/log/types.js +0 -1
- package/esm/foundation/service/requester/deps.d.ts +0 -17
- package/esm/foundation/service/requester/deps.js +0 -11
- package/esm/foundation/service/requester/requester.d.ts +0 -22
- package/esm/foundation/service/requester/requester.js +0 -211
- package/esm/foundation/service/security/index.d.ts +0 -26
- package/esm/foundation/service/security/index.js +0 -216
- package/esm/foundation/types/index.d.ts +0 -4
- package/esm/foundation/types/index.js +0 -4
- package/esm/foundation/utils/gray_scale_utils.d.ts +0 -7
- package/esm/foundation/utils/gray_scale_utils.js +0 -40
- package/esm/foundation/utils/payment_context_utils.d.ts +0 -13
- package/esm/foundation/utils/payment_context_utils.js +0 -57
- package/esm/foundation/utils/redirect_utils.d.ts +0 -6
- package/esm/foundation/utils/redirect_utils.js +0 -99
- package/esm/foundation/utils/system_events.d.ts +0 -4
- package/esm/foundation/utils/system_events.js +0 -71
- package/esm/foundation/utils/web_app_url_utils.d.ts +0 -37
- package/esm/foundation/utils/web_app_url_utils.js +0 -97
- package/esm/service/element.d.ts +0 -4
- package/esm/service/element.js +0 -51
package/esm/foundation/index.js
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
2
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
3
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
4
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
5
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
7
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
8
|
-
import { DisplayTypeEnum, PlatformEnum } from "../types";
|
9
|
-
import { isPC } from "../util";
|
10
|
-
|
11
|
-
/**
|
12
|
-
* @author 谦彧 <zhangmian.zm@alipay.com>
|
13
|
-
* @date 2024/9/17
|
14
|
-
*/
|
15
|
-
|
16
|
-
/**
|
17
|
-
* Represent one transaction, each transaction has its own instance.
|
18
|
-
*/
|
19
|
-
|
20
|
-
export var DisplayInfo = /*#__PURE__*/_createClass(function DisplayInfo() {
|
21
|
-
_classCallCheck(this, DisplayInfo);
|
22
|
-
_defineProperty(this, "type", void 0);
|
23
|
-
_defineProperty(this, "platform", void 0);
|
24
|
-
// whether show retention popup when user leave cashier
|
25
|
-
_defineProperty(this, "isRetention", void 0);
|
26
|
-
_defineProperty(this, "selector", void 0);
|
27
|
-
_defineProperty(this, "appearance", void 0);
|
28
|
-
// append selector name to containerId
|
29
|
-
_defineProperty(this, "appendAliasContainerId", void 0);
|
30
|
-
this.platform = isPC() ? PlatformEnum.desktop : PlatformEnum.mobile;
|
31
|
-
this.isRetention = true;
|
32
|
-
this.type = DisplayTypeEnum.popup;
|
33
|
-
this.selector = '';
|
34
|
-
});
|
35
|
-
/**
|
36
|
-
* Provide unique logic for specified product, or specified product and its payment method.
|
37
|
-
* Such as: EasySafePay, PayPal in Cashier
|
38
|
-
*/
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Provide some capability, such as MonitorService, EventBusService, SecurityService
|
42
|
-
*/
|
@@ -1,15 +0,0 @@
|
|
1
|
-
export type { SDKMetaData } from "../..";
|
2
|
-
export * as ChannelCustomize from '../../../plugin/component/channel';
|
3
|
-
export type { IChannelBehavior } from '../../../plugin/component/channel';
|
4
|
-
export { DisplayTypeEnum } from '../../../types';
|
5
|
-
export type { CashierSdkActionQueryRequest, CashierSdkActionQueryResult, CashierSubmitPayRequest, CashierSubmitPayResult, IOptionsParams, } from '../../../types';
|
6
|
-
export { isPC } from '../../../util';
|
7
|
-
export { isLocalMock } from '../../../util/mock';
|
8
|
-
export type { BizFlowResult, PaymentContext, ProductProcessor, RedirectBehaviorPayload, RenderBehaviorPayload } from '../..';
|
9
|
-
export { ServiceProvider } from '../../service';
|
10
|
-
export type { ContainerService } from '../../service/container';
|
11
|
-
export type { EventCenter } from '../../service/event-center';
|
12
|
-
export { LogService } from '../../service/log';
|
13
|
-
export type { RequesterService } from '../../service/requester/requester';
|
14
|
-
export type { SecurityService } from '../../service/security';
|
15
|
-
export * as WebAppUrlUtil from '../../utils/web_app_url_utils';
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import * as _ChannelCustomize from "../../../plugin/component/channel";
|
2
|
-
export { _ChannelCustomize as ChannelCustomize };
|
3
|
-
export { DisplayTypeEnum } from "../../../types";
|
4
|
-
export { isPC } from "../../../util";
|
5
|
-
export { isLocalMock } from "../../../util/mock";
|
6
|
-
export { ServiceProvider } from "../../service";
|
7
|
-
export { LogService } from "../../service/log";
|
8
|
-
import * as _WebAppUrlUtil from "../../utils/web_app_url_utils";
|
9
|
-
export { _WebAppUrlUtil as WebAppUrlUtil };
|
@@ -1,26 +0,0 @@
|
|
1
|
-
import type { BizFlowResult, IOptionsParams, PaymentContext, ProductProcessor, SDKMetaData } from './deps';
|
2
|
-
export declare class EasySafePayProcessor implements ProductProcessor {
|
3
|
-
private paymentContext?;
|
4
|
-
private initConfig;
|
5
|
-
private logger;
|
6
|
-
private instanceId;
|
7
|
-
private hostSign;
|
8
|
-
private allowSubmitPayCallAhead;
|
9
|
-
private channelBehavior?;
|
10
|
-
init(config: IOptionsParams, instanceId: string, sdkMetaData: SDKMetaData): void;
|
11
|
-
startBizFlow(paymentContext: PaymentContext): Promise<BizFlowResult>;
|
12
|
-
private preloadWebApp;
|
13
|
-
private buildWebAppPreloadUrl;
|
14
|
-
private buildWebAppUrl;
|
15
|
-
private buildRedirectResult;
|
16
|
-
/**
|
17
|
-
* 等待Web应用启动,然后发送renderComponent事件
|
18
|
-
* start waiting web launch, then send renderComponent event
|
19
|
-
* */
|
20
|
-
private sendRequestAndWaitWebLaunch;
|
21
|
-
private processPaymentQuery;
|
22
|
-
private processSubmitPay;
|
23
|
-
private acquireApdidToken;
|
24
|
-
private savePreviousProductInfo;
|
25
|
-
private getPreviousProductInfo;
|
26
|
-
}
|