@alipay/ams-checkout 1.23.0 → 1.24.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.
Files changed (124) hide show
  1. package/dist/umd/ams-checkout.min.js +1 -1
  2. package/esm/config/index.d.ts +7 -7
  3. package/esm/config/index.js +10 -10
  4. package/esm/constant/index.d.ts +6 -0
  5. package/esm/constant/index.js +8 -0
  6. package/esm/core/bus/ability/globalData.d.ts +10 -0
  7. package/esm/core/bus/ability/globalData.js +89 -0
  8. package/esm/core/bus/ability/request.d.ts +10 -0
  9. package/esm/core/bus/ability/request.js +151 -0
  10. package/esm/core/bus/interface.d.ts +12 -0
  11. package/esm/core/bus/interface.js +16 -2
  12. package/esm/core/component/address.d.ts +2 -2
  13. package/esm/core/component/appPreloadProcessing.js +2 -0
  14. package/esm/core/component/ckp/index.d.ts +3 -3
  15. package/esm/core/component/ckp/index.js +6 -5
  16. package/esm/core/component/element/components/address.d.ts +19 -0
  17. package/esm/core/component/element/components/address.js +68 -0
  18. package/esm/core/component/element/components/auth.d.ts +17 -0
  19. package/esm/core/component/element/components/auth.js +60 -0
  20. package/esm/core/component/element/components/payment.d.ts +19 -0
  21. package/esm/core/component/element/components/payment.js +74 -0
  22. package/esm/core/component/element/index.d.ts +47 -0
  23. package/esm/core/component/element/index.js +816 -0
  24. package/esm/core/component/element/mock.d.ts +4 -0
  25. package/esm/core/component/element/mock.js +491 -0
  26. package/esm/core/component/element/type.d.ts +184 -0
  27. package/esm/core/component/element/type.js +35 -0
  28. package/esm/core/component/element/utils.d.ts +13 -0
  29. package/esm/core/component/element/utils.js +6 -0
  30. package/esm/core/component/index.d.ts +5 -5
  31. package/esm/core/component/index.js +20 -16
  32. package/esm/core/drop-in/index.d.ts +2 -2
  33. package/esm/core/drop-in/index.js +2 -2
  34. package/esm/core/instance/index.d.ts +5 -5
  35. package/esm/core/instance/index.js +11 -10
  36. package/esm/foundation/core/index.d.ts +26 -0
  37. package/esm/foundation/core/index.js +301 -0
  38. package/esm/foundation/index.d.ts +72 -0
  39. package/esm/foundation/index.js +42 -0
  40. package/esm/foundation/product-processor/easysafepay/deps.d.ts +15 -0
  41. package/esm/foundation/product-processor/easysafepay/deps.js +9 -0
  42. package/esm/foundation/product-processor/easysafepay/index.d.ts +26 -0
  43. package/esm/foundation/product-processor/easysafepay/index.js +536 -0
  44. package/esm/foundation/service/container/index.d.ts +28 -0
  45. package/esm/foundation/service/container/index.js +256 -0
  46. package/esm/foundation/service/container/popup.d.ts +17 -0
  47. package/esm/foundation/service/container/popup.js +103 -0
  48. package/esm/foundation/service/container/utils.d.ts +7 -0
  49. package/esm/foundation/service/container/utils.js +48 -0
  50. package/esm/foundation/service/event-bus/ability/callback.d.ts +9 -0
  51. package/esm/foundation/service/event-bus/ability/callback.js +55 -0
  52. package/esm/foundation/service/event-bus/ability/globalData.d.ts +10 -0
  53. package/esm/foundation/service/event-bus/ability/globalData.js +89 -0
  54. package/esm/foundation/service/event-bus/ability/request.d.ts +10 -0
  55. package/esm/foundation/service/event-bus/ability/request.js +151 -0
  56. package/esm/foundation/service/event-bus/ability/security.d.ts +12 -0
  57. package/esm/foundation/service/event-bus/ability/security.js +151 -0
  58. package/esm/foundation/service/event-bus/ability/tracker.d.ts +9 -0
  59. package/esm/foundation/service/event-bus/ability/tracker.js +80 -0
  60. package/esm/foundation/service/event-bus/busManager.d.ts +127 -0
  61. package/esm/foundation/service/event-bus/busManager.js +398 -0
  62. package/esm/foundation/service/event-bus/index.d.ts +20 -0
  63. package/esm/foundation/service/event-bus/index.js +88 -0
  64. package/esm/foundation/service/event-center.d.ts +75 -0
  65. package/esm/foundation/service/event-center.js +244 -0
  66. package/esm/foundation/service/global-data/index.d.ts +11 -0
  67. package/esm/foundation/service/global-data/index.js +69 -0
  68. package/esm/foundation/service/index.d.ts +19 -0
  69. package/esm/foundation/service/index.js +82 -0
  70. package/esm/foundation/service/log/index.d.ts +43 -0
  71. package/esm/foundation/service/log/index.js +235 -0
  72. package/esm/foundation/service/log/types.d.ts +32 -0
  73. package/esm/foundation/service/log/types.js +1 -0
  74. package/esm/foundation/service/requester/deps.d.ts +17 -0
  75. package/esm/foundation/service/requester/deps.js +11 -0
  76. package/esm/foundation/service/requester/requester.d.ts +22 -0
  77. package/esm/foundation/service/requester/requester.js +211 -0
  78. package/esm/foundation/service/security/index.d.ts +26 -0
  79. package/esm/foundation/service/security/index.js +216 -0
  80. package/esm/{util → foundation/service/security}/security.d.ts +2 -2
  81. package/esm/{util → foundation/service/security}/security.js +3 -3
  82. package/esm/foundation/types/index.d.ts +4 -0
  83. package/esm/foundation/types/index.js +4 -0
  84. package/esm/foundation/utils/gray_scale_utils.d.ts +7 -0
  85. package/esm/foundation/utils/gray_scale_utils.js +40 -0
  86. package/esm/foundation/utils/payment_context_utils.d.ts +13 -0
  87. package/esm/foundation/utils/payment_context_utils.js +57 -0
  88. package/esm/foundation/utils/redirect_utils.d.ts +6 -0
  89. package/esm/foundation/utils/redirect_utils.js +99 -0
  90. package/esm/foundation/utils/system_events.d.ts +4 -0
  91. package/esm/foundation/utils/system_events.js +71 -0
  92. package/esm/foundation/utils/web_app_url_utils.d.ts +37 -0
  93. package/esm/foundation/utils/web_app_url_utils.js +97 -0
  94. package/esm/index.d.ts +16 -10
  95. package/esm/index.js +70 -59
  96. package/esm/plugin/applepay/component.js +3 -3
  97. package/esm/plugin/applepay/service.d.ts +2 -2
  98. package/esm/plugin/applepay/service.js +2 -2
  99. package/esm/plugin/component/cashierApp.d.ts +7 -5
  100. package/esm/plugin/component/cashierApp.js +16 -8
  101. package/esm/plugin/component/channel.d.ts +4 -4
  102. package/esm/plugin/component/component.inline.style.d.ts +4 -4
  103. package/esm/plugin/component/component.inline.style.js +10 -7
  104. package/esm/plugin/component/component.popup.style.d.ts +15 -6
  105. package/esm/plugin/component/component.popup.style.js +33 -15
  106. package/esm/plugin/component/index.d.ts +8 -7
  107. package/esm/plugin/component/index.js +153 -98
  108. package/esm/plugin/const.js +5 -5
  109. package/esm/plugin/drop-in/index.d.ts +5 -5
  110. package/esm/plugin/drop-in/index.js +7 -7
  111. package/esm/plugin/payment-element/utils.d.ts +1 -1
  112. package/esm/plugin/payment-element/utils.js +2 -1
  113. package/esm/plugin/type.d.ts +4 -4
  114. package/esm/service/element.d.ts +4 -0
  115. package/esm/service/element.js +51 -0
  116. package/esm/service/index.d.ts +1 -0
  117. package/esm/service/index.js +2 -0
  118. package/esm/types/index.d.ts +240 -38
  119. package/esm/types/index.js +103 -59
  120. package/esm/util/createIframeNode.d.ts +2 -2
  121. package/esm/util/createIframeNode.js +3 -3
  122. package/esm/util/index.d.ts +1 -1
  123. package/esm/util/index.js +3 -4
  124. package/package.json +2 -1
@@ -6,56 +6,56 @@
6
6
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
7
7
  */
8
8
  /* eslint-disable @typescript-eslint/no-explicit-any */
9
+ export * from "../core/component/element/type";
9
10
 
10
11
  /**
11
12
  * SDK options
12
13
  */
13
14
 
14
- export var renderDisplayTypeEnum = /*#__PURE__*/function (renderDisplayTypeEnum) {
15
- renderDisplayTypeEnum["popup"] = "popup";
16
- renderDisplayTypeEnum["inline"] = "inline";
17
- return renderDisplayTypeEnum;
15
+ export var DisplayTypeEnum = /*#__PURE__*/function (DisplayTypeEnum) {
16
+ DisplayTypeEnum["popup"] = "popup";
17
+ DisplayTypeEnum["inline"] = "inline";
18
+ return DisplayTypeEnum;
18
19
  }({});
19
20
  export var ComponentSignEnumV2 = /*#__PURE__*/function (ComponentSignEnumV2) {
20
21
  ComponentSignEnumV2["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT_ALL";
21
22
  ComponentSignEnumV2["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS_ALL";
22
23
  return ComponentSignEnumV2;
23
24
  }({});
24
- export var componentSignEnum = /*#__PURE__*/function (componentSignEnum) {
25
- componentSignEnum["EASY_PAY_WALLET"] = "EASY_PAY_WALLET";
26
- componentSignEnum["EASY_PAY_APM"] = "EASY_PAY_APM";
27
- componentSignEnum["CASHIER_PAYMENT_CARD"] = "CASHIER_PAYMENT_CARD";
28
- componentSignEnum["CASHIER_PAYMENT_BANK"] = "CASHIER_PAYMENT_BANK";
29
- componentSignEnum["CASHIER_PAYMENT_APM"] = "CASHIER_PAYMENT_APM";
30
- componentSignEnum["AUTO_DEBIT_WALLET"] = "AUTO_DEBIT_WALLET";
31
- componentSignEnum["AUTO_DEBIT_PAY_WALLET"] = "AUTO_DEBIT_PAY_WALLET";
32
- componentSignEnum["NONE"] = "NONE";
33
- componentSignEnum["VAULTING_CARD"] = "VAULTING_CARD";
34
- componentSignEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT_ALL";
35
- componentSignEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS_ALL";
36
- componentSignEnum["CHECKOUT_PAYMENT"] = "CHECKOUT_PAYMENT";
37
- return componentSignEnum;
38
- }({});
39
- export var productSceneEnum = /*#__PURE__*/function (productSceneEnum) {
40
- productSceneEnum["EASY_PAY"] = "EASY_PAY";
41
- productSceneEnum["CASHIER_PAYMENT"] = "CASHIER_PAYMENT";
42
- productSceneEnum["AUTO_DEBIT"] = "AUTO_DEBIT";
43
- productSceneEnum["AUTO_DEBIT_PAY"] = "AUTO_DEBIT_PAY";
44
- productSceneEnum["VAULTING"] = "VAULTING";
45
- productSceneEnum["FLASH_BUY"] = "FLASH_BUY";
46
- productSceneEnum["CARD_APPLE_PAY"] = "CARD_APPLE_PAY";
47
- productSceneEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT";
48
- productSceneEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS";
49
- productSceneEnum["CHECKOUT_PAYMENT"] = "CHECKOUT_PAYMENT";
50
- return productSceneEnum;
51
- }({});
52
- export var paymentMethodCategoryTypeEnum = /*#__PURE__*/function (paymentMethodCategoryTypeEnum) {
53
- paymentMethodCategoryTypeEnum["CARD"] = "CARD";
54
- paymentMethodCategoryTypeEnum["WALLET"] = "WALLET";
55
- paymentMethodCategoryTypeEnum["BANK"] = "BANK";
56
- paymentMethodCategoryTypeEnum["APM"] = "APM";
57
- paymentMethodCategoryTypeEnum["ALL"] = "ALL";
58
- return paymentMethodCategoryTypeEnum;
25
+ export var ComponentSignEnum = /*#__PURE__*/function (ComponentSignEnum) {
26
+ ComponentSignEnum["EASY_PAY_WALLET"] = "EASY_PAY_WALLET";
27
+ ComponentSignEnum["EASY_PAY_APM"] = "EASY_PAY_APM";
28
+ ComponentSignEnum["CASHIER_PAYMENT_CARD"] = "CASHIER_PAYMENT_CARD";
29
+ ComponentSignEnum["CASHIER_PAYMENT_BANK"] = "CASHIER_PAYMENT_BANK";
30
+ ComponentSignEnum["CASHIER_PAYMENT_APM"] = "CASHIER_PAYMENT_APM";
31
+ ComponentSignEnum["AUTO_DEBIT_WALLET"] = "AUTO_DEBIT_WALLET";
32
+ ComponentSignEnum["AUTO_DEBIT_PAY_WALLET"] = "AUTO_DEBIT_PAY_WALLET";
33
+ ComponentSignEnum["NONE"] = "NONE";
34
+ ComponentSignEnum["VAULTING_CARD"] = "VAULTING_CARD";
35
+ ComponentSignEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT_ALL";
36
+ ComponentSignEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS_ALL";
37
+ return ComponentSignEnum;
38
+ }({}); // 'CHECKOUT_PAYMENT' = 'CHECKOUT_PAYMENT',
39
+ export var ProductSceneEnum = /*#__PURE__*/function (ProductSceneEnum) {
40
+ ProductSceneEnum["EASY_PAY"] = "EASY_PAY";
41
+ ProductSceneEnum["CASHIER_PAYMENT"] = "CASHIER_PAYMENT";
42
+ ProductSceneEnum["AUTO_DEBIT"] = "AUTO_DEBIT";
43
+ ProductSceneEnum["AUTO_DEBIT_PAY"] = "AUTO_DEBIT_PAY";
44
+ ProductSceneEnum["VAULTING"] = "VAULTING";
45
+ ProductSceneEnum["FLASH_BUY"] = "FLASH_BUY";
46
+ ProductSceneEnum["CARD_APPLE_PAY"] = "CARD_APPLE_PAY";
47
+ ProductSceneEnum["ELEMENT_PAYMENT"] = "ELEMENT_PAYMENT";
48
+ ProductSceneEnum["ELEMENT_ADDRESS"] = "ELEMENT_ADDRESS";
49
+ ProductSceneEnum["CHECKOUT_PAYMENT"] = "CHECKOUT_PAYMENT";
50
+ return ProductSceneEnum;
51
+ }({});
52
+ export var PaymentMethodCategoryTypeEnum = /*#__PURE__*/function (PaymentMethodCategoryTypeEnum) {
53
+ PaymentMethodCategoryTypeEnum["CARD"] = "CARD";
54
+ PaymentMethodCategoryTypeEnum["WALLET"] = "WALLET";
55
+ PaymentMethodCategoryTypeEnum["BANK"] = "BANK";
56
+ PaymentMethodCategoryTypeEnum["APM"] = "APM";
57
+ PaymentMethodCategoryTypeEnum["ALL"] = "ALL";
58
+ return PaymentMethodCategoryTypeEnum;
59
59
  }({});
60
60
 
61
61
  /** 表单地址数据 */
@@ -88,11 +88,11 @@ export var networkModeEnum = /*#__PURE__*/function (networkModeEnum) {
88
88
  networkModeEnum["session"] = "session";
89
89
  return networkModeEnum;
90
90
  }({});
91
- export var environmentEnum = /*#__PURE__*/function (environmentEnum) {
92
- environmentEnum["sandbox"] = "sandbox";
93
- environmentEnum["prod"] = "prod";
94
- environmentEnum["light_sandbox"] = "light_sandbox";
95
- return environmentEnum;
91
+ export var EnvironmentEnum = /*#__PURE__*/function (EnvironmentEnum) {
92
+ EnvironmentEnum["sandbox"] = "sandbox";
93
+ EnvironmentEnum["prod"] = "prod";
94
+ EnvironmentEnum["light_sandbox"] = "light_sandbox";
95
+ return EnvironmentEnum;
96
96
  }({});
97
97
  export var osTypeEnum = /*#__PURE__*/function (osTypeEnum) {
98
98
  osTypeEnum["IOS"] = "IOS";
@@ -107,10 +107,10 @@ export var terminalTypeEnum = /*#__PURE__*/function (terminalTypeEnum) {
107
107
  terminalTypeEnum["MINI_APP"] = "MINI_APP";
108
108
  return terminalTypeEnum;
109
109
  }({});
110
- export var platformEnum = /*#__PURE__*/function (platformEnum) {
111
- platformEnum["desktop"] = "desktop";
112
- platformEnum["mobile"] = "mobile";
113
- return platformEnum;
110
+ export var PlatformEnum = /*#__PURE__*/function (PlatformEnum) {
111
+ PlatformEnum["desktop"] = "desktop";
112
+ PlatformEnum["mobile"] = "mobile";
113
+ return PlatformEnum;
114
114
  }({});
115
115
 
116
116
  /**
@@ -129,17 +129,17 @@ export var platformEnum = /*#__PURE__*/function (platformEnum) {
129
129
  * @description Create an event handler, In pop-up layer mode, the user clicks the semi floating layer close button and is called.
130
130
  */
131
131
 
132
- export var messageName = /*#__PURE__*/function (messageName) {
133
- messageName["SDK_TO_APP"] = "SDK_TO_APP";
134
- messageName["APP_TO_SDK"] = "APP_TO_SDK";
135
- messageName["APP_TO_APP"] = "APP_TO_APP";
136
- return messageName;
137
- }({});
138
- export var targetEnum = /*#__PURE__*/function (targetEnum) {
139
- targetEnum["BLANK"] = "_blank";
140
- targetEnum["SELF"] = "_self";
141
- targetEnum["REPLACE"] = "_replace";
142
- return targetEnum;
132
+ export var MessageName = /*#__PURE__*/function (MessageName) {
133
+ MessageName["SDK_TO_APP"] = "SDK_TO_APP";
134
+ MessageName["APP_TO_SDK"] = "APP_TO_SDK";
135
+ MessageName["APP_TO_APP"] = "APP_TO_APP";
136
+ return MessageName;
137
+ }({});
138
+ export var TargetEnum = /*#__PURE__*/function (TargetEnum) {
139
+ TargetEnum["BLANK"] = "_blank";
140
+ TargetEnum["SELF"] = "_self";
141
+ TargetEnum["REPLACE"] = "_replace";
142
+ return TargetEnum;
143
143
  }({});
144
144
  export var errorEnum = /*#__PURE__*/function (errorEnum) {
145
145
  errorEnum["PARAMS"] = "PARAMS";
@@ -208,4 +208,48 @@ export var ProductSceneVersion = /*#__PURE__*/function (ProductSceneVersion) {
208
208
  ProductSceneVersion["V1"] = "1.0";
209
209
  ProductSceneVersion["V2"] = "2.0";
210
210
  return ProductSceneVersion;
211
+ }({});
212
+ export var AccountStatusEnum = /*#__PURE__*/function (AccountStatusEnum) {
213
+ AccountStatusEnum["EFFECTIVE"] = "EFFECTIVE";
214
+ AccountStatusEnum["UNREGISTERED"] = "UNREGISTERED";
215
+ return AccountStatusEnum;
216
+ }({});
217
+
218
+ // element 接口start
219
+
220
+ export var InterActionTypeEnum = /*#__PURE__*/function (InterActionTypeEnum) {
221
+ InterActionTypeEnum["COLLECT_REDIRECT"] = "COLLECT_REDIRECT";
222
+ InterActionTypeEnum["SHOW_CODE"] = "SHOW_CODE";
223
+ InterActionTypeEnum["COLLECT_SHOW_CODE"] = "COLLECT_SHOW_CODE";
224
+ InterActionTypeEnum["REDIRECT"] = "REDIRECT";
225
+ return InterActionTypeEnum;
226
+ }({});
227
+ // element 接口end
228
+
229
+ export var ElementPaymentMethod = /*#__PURE__*/function (ElementPaymentMethod) {
230
+ ElementPaymentMethod["CONTAINER_ELEMENT"] = "CONTAINER_ELEMENT";
231
+ ElementPaymentMethod["AUTH_ELEMENT"] = "AUTH_ELEMENT";
232
+ ElementPaymentMethod["ADDRESS_ELEMENT"] = "ADDRESS_ELEMENT";
233
+ ElementPaymentMethod["PAYMENT_ELEMENT"] = "PAYMENT_ELEMENT";
234
+ return ElementPaymentMethod;
235
+ }({});
236
+ export var ElementPaymentEvent = /*#__PURE__*/function (ElementPaymentEvent) {
237
+ ElementPaymentEvent["INITIAL_DATA_READY"] = "initialDataReady";
238
+ ElementPaymentEvent["CAPTURE_ASSET"] = "onCaptureAsset";
239
+ ElementPaymentEvent["SIGN_OUT"] = "onSignout";
240
+ ElementPaymentEvent["BLUR"] = "onBlur";
241
+ ElementPaymentEvent["VALIDATE"] = "validate";
242
+ ElementPaymentEvent["SUBMIT_RISK"] = "onSubmitRisk";
243
+ ElementPaymentEvent["AFTER_SUBMIT"] = "onAfterSubmit";
244
+ ElementPaymentEvent["SIZE_CHANGE"] = "onSizeChange";
245
+ ElementPaymentEvent["LAUNCH"] = "onLaunch";
246
+ ElementPaymentEvent["CALLBACK"] = "callback";
247
+ ElementPaymentEvent["LOG"] = "log";
248
+ return ElementPaymentEvent;
249
+ }({});
250
+ export var ConnectErrorCode = /*#__PURE__*/function (ConnectErrorCode) {
251
+ ConnectErrorCode["RISK_REJECT"] = "RISK_REJECT";
252
+ ConnectErrorCode["USER_AUTH_VERIFICATION_FAILED"] = "USER_AUTH_VERIFICATION_FAILED";
253
+ ConnectErrorCode["USER_NOT_EXISTS"] = "USER_NOT_EXISTS";
254
+ return ConnectErrorCode;
211
255
  }({});
@@ -1,6 +1,6 @@
1
- import { Iselector, renderDisplayTypeEnum } from '../types';
1
+ import { Iselector, DisplayTypeEnum } from '../types';
2
2
  /**
3
3
  * @description context中需要包含app节点,用于插入selector中
4
4
  */
5
- export declare const createIframeNode: (context: any, selector: Iselector, renderDisplayType: renderDisplayTypeEnum) => Promise<void>;
5
+ export declare const createIframeNode: (context: any, selector: Iselector, renderDisplayType: DisplayTypeEnum) => Promise<void>;
6
6
  export declare const createPreloadIframeNode: (virtualPreloadIframe: any) => void;
@@ -7,7 +7,7 @@
7
7
  /* eslint-disable @typescript-eslint/no-explicit-any */
8
8
  import { getType } from '.';
9
9
  import { ERRORMESSAGE, EVENT } from "../constant";
10
- import { messageName, renderDisplayTypeEnum } from "../types";
10
+ import { MessageName, DisplayTypeEnum } from "../types";
11
11
  /**
12
12
  * @description context中需要包含app节点,用于插入selector中
13
13
  */
@@ -24,7 +24,7 @@ export var createIframeNode = function createIframeNode(context, selector, rende
24
24
  };
25
25
  reject(error);
26
26
  context._dispatchToSDK({
27
- name: messageName.APP_TO_SDK,
27
+ name: MessageName.APP_TO_SDK,
28
28
  instanceId: context.AMSSDK._instanceId,
29
29
  context: {
30
30
  event: EVENT.error.name,
@@ -33,7 +33,7 @@ export var createIframeNode = function createIframeNode(context, selector, rende
33
33
  });
34
34
  return;
35
35
  }
36
- if (renderDisplayType === renderDisplayTypeEnum.popup) dorpinDom.innerHTML = '';
36
+ if (renderDisplayType === DisplayTypeEnum.popup) dorpinDom.innerHTML = '';
37
37
  if (context.app) {
38
38
  dorpinDom.appendChild(context.app);
39
39
  }
@@ -4,7 +4,6 @@
4
4
  * 1. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE; and
5
5
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
6
6
  */
7
- declare const getType: (target: any) => string;
8
7
  declare class EventCenter {
9
8
  private events;
10
9
  private eventsKey;
@@ -15,6 +14,7 @@ declare class EventCenter {
15
14
  once(name: string, func: any, key?: string): void;
16
15
  isExist(name: string): boolean;
17
16
  }
17
+ declare const getType: (target: any) => string;
18
18
  declare const getViewPort: (key: string) => any;
19
19
  declare const getOrigin: () => string;
20
20
  declare const serialize: (obj: Record<string, string>) => string;
package/esm/util/index.js CHANGED
@@ -12,10 +12,6 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
12
12
  * 2. If applicable, the use of the Software is also subject to the terms and conditions of any non-disclosure agreement signed by you and the relevant Ant Group entity.
13
13
  */
14
14
  /* eslint-disable @typescript-eslint/no-explicit-any */
15
-
16
- var getType = function getType(target) {
17
- return Object.prototype.toString.call(target).slice(8, -1).toLowerCase();
18
- };
19
15
  var EventCenter = /*#__PURE__*/function () {
20
16
  function EventCenter() {
21
17
  _classCallCheck(this, EventCenter);
@@ -91,6 +87,9 @@ var EventCenter = /*#__PURE__*/function () {
91
87
  }]);
92
88
  return EventCenter;
93
89
  }();
90
+ var getType = function getType(target) {
91
+ return Object.prototype.toString.call(target).slice(8, -1).toLowerCase();
92
+ };
94
93
  var getViewPort = function getViewPort(key) {
95
94
  var meta = document.getElementsByTagName('meta');
96
95
  // HTMLMetaElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",
@@ -15,6 +15,7 @@
15
15
  ],
16
16
  "scripts": {
17
17
  "build": "father build",
18
+ "build:w": "father dev",
18
19
  "dev": "father dev",
19
20
  "ci": "npm run lint",
20
21
  "cov": "jest --coverage",