@alipay/ams-checkout 2.0.28 → 2.0.30

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 (180) hide show
  1. package/ams-checkout.js +3 -3
  2. package/dist/ams-checkout.min.js +1 -1
  3. package/esm/config/index.js +1 -1
  4. package/esm/core/component/element/elementProcessor/convertPaymentMethods.d.ts +1 -0
  5. package/esm/core/component/element/elementProcessor/convertPaymentMethods.js +4 -2
  6. package/esm/core/component/element/modernElementController/index.d.ts +4 -1
  7. package/esm/core/component/element/modernElementController/index.js +184 -132
  8. package/esm/core/component/element/type.d.ts +4 -0
  9. package/esm/modern/component/channel.d.ts +21 -0
  10. package/esm/modern/component/component.inline.style.d.ts +10 -0
  11. package/esm/modern/component/component.popup.style.d.ts +26 -0
  12. package/esm/modern/component/popupWindow.style.d.ts +27 -0
  13. package/esm/modern/config/index.d.ts +23 -0
  14. package/esm/modern/config/request.d.ts +21 -0
  15. package/esm/modern/constant/auto-debit.d.ts +12 -0
  16. package/esm/modern/constant/easysafepay.d.ts +16 -0
  17. package/esm/modern/constant/element.d.ts +27 -0
  18. package/esm/modern/constant/index.d.ts +331 -0
  19. package/esm/modern/core/bus/ability/callback.d.ts +9 -0
  20. package/esm/modern/core/bus/ability/security.d.ts +10 -0
  21. package/esm/modern/core/bus/ability/tracker.d.ts +9 -0
  22. package/esm/modern/core/bus/index.d.ts +125 -0
  23. package/esm/modern/core/bus/interface.d.ts +36 -0
  24. package/esm/modern/core/component/address.d.ts +8 -0
  25. package/esm/modern/core/component/appPreloadProcessing.d.ts +1 -0
  26. package/esm/modern/core/component/ckp/index.d.ts +29 -0
  27. package/esm/modern/core/component/element/EventCenter/index.d.ts +41 -0
  28. package/esm/modern/core/component/element/config.d.ts +10 -0
  29. package/esm/modern/core/component/element/elementContainerService/containerService.d.ts +34 -0
  30. package/esm/modern/core/component/element/elementContainerService/index.d.ts +20 -0
  31. package/esm/modern/core/component/element/elementController/index.d.ts +54 -0
  32. package/esm/modern/core/component/element/elementProcessor/addressProcessor.d.ts +20 -0
  33. package/esm/modern/core/component/element/elementProcessor/authProcessor.d.ts +20 -0
  34. package/esm/modern/core/component/element/elementProcessor/baseElementProcessor.d.ts +42 -0
  35. package/esm/modern/core/component/element/elementProcessor/convertPaymentMethods.d.ts +23 -0
  36. package/esm/modern/core/component/element/elementProcessor/paymentProcessor.d.ts +37 -0
  37. package/esm/modern/core/component/element/index.d.ts +17 -0
  38. package/esm/modern/core/component/element/mock.d.ts +10 -0
  39. package/esm/modern/core/component/element/modernElementController/adapter.d.ts +19 -0
  40. package/esm/modern/core/component/element/modernElementController/index.d.ts +172 -0
  41. package/esm/modern/core/component/element/type.d.ts +590 -0
  42. package/esm/modern/core/component/element/util.d.ts +93 -0
  43. package/esm/modern/core/component/index.d.ts +58 -0
  44. package/esm/modern/core/instance/index.d.ts +97 -0
  45. package/esm/modern/core/utils/connectConfig.d.ts +11 -0
  46. package/esm/modern/foundation/core/index.d.ts +36 -0
  47. package/esm/modern/foundation/index.d.ts +93 -0
  48. package/esm/modern/foundation/product-processor/autoDebit/deps.d.ts +14 -0
  49. package/esm/modern/foundation/product-processor/autoDebit/index.d.ts +48 -0
  50. package/esm/modern/foundation/product-processor/easysafepay/deps.d.ts +20 -0
  51. package/esm/modern/foundation/product-processor/easysafepay/index.d.ts +29 -0
  52. package/esm/modern/foundation/product-processor/element/index.d.ts +7 -0
  53. package/esm/modern/foundation/service/api-bus/ability/globalData.d.ts +10 -0
  54. package/esm/modern/foundation/service/api-bus/ability/request.d.ts +10 -0
  55. package/esm/modern/foundation/service/api-bus/ability/security.d.ts +12 -0
  56. package/esm/modern/foundation/service/api-bus/ability/tracker.d.ts +9 -0
  57. package/esm/modern/foundation/service/api-bus/busManager.d.ts +127 -0
  58. package/esm/modern/foundation/service/api-bus/index.d.ts +20 -0
  59. package/esm/modern/foundation/service/api-bus/interface.d.ts +48 -0
  60. package/esm/modern/foundation/service/container/index.d.ts +42 -0
  61. package/esm/modern/foundation/service/container/popup.d.ts +31 -0
  62. package/esm/modern/foundation/service/container/utils.d.ts +7 -0
  63. package/esm/modern/foundation/service/event-center.d.ts +82 -0
  64. package/esm/modern/foundation/service/global-data/index.d.ts +11 -0
  65. package/esm/modern/foundation/service/index.d.ts +19 -0
  66. package/esm/modern/foundation/service/log/index.d.ts +44 -0
  67. package/esm/modern/foundation/service/log/keys.d.ts +13 -0
  68. package/esm/modern/foundation/service/log/processor.d.ts +9 -0
  69. package/esm/modern/foundation/service/log/types.d.ts +33 -0
  70. package/esm/modern/foundation/service/requester/deps.d.ts +17 -0
  71. package/esm/modern/foundation/service/requester/requester.d.ts +22 -0
  72. package/esm/modern/foundation/service/security/index.d.ts +33 -0
  73. package/esm/modern/foundation/service/security/security.d.ts +54 -0
  74. package/esm/modern/foundation/utils/gray_scale_utils.d.ts +7 -0
  75. package/esm/modern/foundation/utils/payment_context_utils.d.ts +13 -0
  76. package/esm/modern/foundation/utils/payment_product_utils.d.ts +13 -0
  77. package/esm/modern/foundation/utils/preload_helper.d.ts +24 -0
  78. package/esm/modern/foundation/utils/redirect_utils.d.ts +11 -0
  79. package/esm/modern/foundation/utils/system_events.d.ts +4 -0
  80. package/esm/modern/foundation/utils/web_app_url_utils.d.ts +114 -0
  81. package/esm/modern/index.js +1 -1
  82. package/esm/modern/loadAntomTracker.d.ts +7 -0
  83. package/esm/modern/loadAntomTracker.js +64 -0
  84. package/esm/modern/loader/constant.d.ts +36 -0
  85. package/esm/modern/loader/utils/proxyPerformance.d.ts +20 -0
  86. package/esm/modern/main.d.ts +54 -0
  87. package/esm/modern/{index.d.ts → modern/index.d.ts} +1 -1
  88. package/esm/modern/modern/loadAntomTracker.d.ts +7 -0
  89. package/esm/modern/modern/preload/antomManifestAdapter.d.ts +11 -0
  90. package/esm/modern/modern/preload/config.d.ts +10 -0
  91. package/esm/modern/modern/preload/gatewayPreconnection.d.ts +53 -0
  92. package/esm/modern/modern/preload/preloadAntomElements.d.ts +12 -0
  93. package/esm/modern/modern/preload/startAntomPreload.d.ts +2 -0
  94. package/esm/modern/modern/sdk/applepay-core/ApplePayHostService.d.ts +102 -0
  95. package/esm/modern/modern/sdk/elements/CVVElement.d.ts +144 -0
  96. package/esm/modern/modern/sdk/elements/PaymentElement.d.ts +204 -0
  97. package/esm/modern/modern/sdk/elements/appearanceRules.d.ts +59 -0
  98. package/esm/modern/modern/sdk/elements/appearanceRulesDefaults.d.ts +2 -0
  99. package/esm/modern/modern/sdk/eventsMap.d.ts +135 -0
  100. package/esm/modern/modern/sdk/oneapi/iexpfront/PaymentSessionService.d.ts +69 -0
  101. package/esm/modern/modern/sdk/oneapi/iexpfront/definitions.d.ts +5346 -0
  102. package/esm/modern/modern/sdk/oneapi/iexpfront/preConnection.d.ts +6 -0
  103. package/esm/modern/modern/sdk/stageName.d.ts +3 -0
  104. package/esm/modern/modern/sdk/tools/awaitWrap.d.ts +14 -0
  105. package/esm/modern/modern/sdk/tools/buildPageUrl.d.ts +4 -0
  106. package/esm/modern/modern/sdk/tools/checkSessionData.d.ts +1 -0
  107. package/esm/modern/modern/sdk/tools/expressElement/applePay.d.ts +9 -0
  108. package/esm/modern/modern/sdk/tools/expressElement/applePayHostToken.d.ts +32 -0
  109. package/esm/modern/modern/sdk/tools/expressElement/types.d.ts +277 -0
  110. package/esm/modern/modern/sdk/tools/getDevReqConfig.d.ts +2 -0
  111. package/esm/modern/modern/sdk/tools/getLocaleFromRenderData.d.ts +6 -0
  112. package/esm/modern/modern/sdk/tools/getMetaData.d.ts +126 -0
  113. package/esm/modern/modern/sdk/tools/modalMessageMonitor.d.ts +41 -0
  114. package/esm/modern/modern/sdk/tools/openModal.d.ts +20 -0
  115. package/esm/modern/modern/sdk/tools/paymentElement/applePayHostToken.d.ts +38 -0
  116. package/esm/modern/modern/sdk/tools/paymentElement/googlePayHostToken.d.ts +38 -0
  117. package/esm/modern/modern/sdk/tools/paymentElement/tracker.d.ts +16 -0
  118. package/esm/modern/modern/sdk/tools/paymentElement/walletHostListeners.d.ts +19 -0
  119. package/esm/modern/modern/sdk/tools/preloadTracking.d.ts +5 -0
  120. package/esm/modern/modern/sdk/tools/showToast.d.ts +33 -0
  121. package/esm/modern/modern/sdk/tools/validatePaymentAmount.d.ts +19 -0
  122. package/esm/modern/modern/sdk/tracking/elementTracker.d.ts +65 -0
  123. package/esm/modern/modern/sdk/types.d.ts +310 -0
  124. package/esm/modern/modern/tools.d.ts +26 -0
  125. package/esm/modern/plugin/applepay/component.d.ts +50 -0
  126. package/esm/modern/plugin/applepay/index.d.ts +17 -0
  127. package/esm/modern/plugin/applepay/interface.d.ts +161 -0
  128. package/esm/modern/plugin/applepay/service.d.ts +54 -0
  129. package/esm/modern/plugin/component/cashierApp.d.ts +38 -0
  130. package/esm/modern/plugin/component/channel.d.ts +73 -0
  131. package/esm/modern/plugin/component/component.inline.style.d.ts +10 -0
  132. package/esm/modern/plugin/component/component.popup.style.d.ts +25 -0
  133. package/esm/modern/plugin/component/index.d.ts +133 -0
  134. package/esm/modern/plugin/component/popupWindow.style.d.ts +11 -0
  135. package/esm/modern/plugin/const.d.ts +2 -0
  136. package/esm/modern/plugin/payment-element/utils.d.ts +2 -0
  137. package/esm/modern/plugin/paypal/index.d.ts +20 -0
  138. package/esm/modern/plugin/type.d.ts +34 -0
  139. package/esm/modern/plugin/utils.d.ts +6 -0
  140. package/esm/modern/preload/antomManifestAdapter.d.ts +11 -0
  141. package/esm/modern/preload/antomManifestAdapter.js +116 -0
  142. package/esm/modern/preload/config.d.ts +10 -0
  143. package/esm/modern/preload/config.js +46 -0
  144. package/esm/modern/preload/gatewayPreconnection.d.ts +53 -0
  145. package/esm/modern/preload/gatewayPreconnection.js +213 -0
  146. package/esm/modern/preload/preloadAntomElements.d.ts +12 -0
  147. package/esm/modern/preload/preloadAntomElements.js +99 -0
  148. package/esm/modern/preload/startAntomPreload.d.ts +2 -0
  149. package/esm/modern/preload/startAntomPreload.js +9 -0
  150. package/esm/modern/request/index.d.ts +9 -0
  151. package/esm/modern/request/utils.d.ts +28 -0
  152. package/esm/modern/service/index.d.ts +13 -0
  153. package/esm/modern/tools.js +1 -1
  154. package/esm/modern/types/index.d.ts +862 -0
  155. package/esm/modern/util/beforeConfirm.d.ts +14 -0
  156. package/esm/modern/util/createIframeNode.d.ts +6 -0
  157. package/esm/modern/util/debug.d.ts +1 -0
  158. package/esm/modern/util/get.d.ts +25 -0
  159. package/esm/modern/util/getBackScheme.d.ts +5 -0
  160. package/esm/modern/util/index.d.ts +61 -0
  161. package/esm/modern/util/jshield-apdid/apdid-loader.d.ts +89 -0
  162. package/esm/modern/util/jshield-apdid/index.d.ts +21 -0
  163. package/esm/modern/util/logger.d.ts +67 -0
  164. package/esm/modern/util/mock.d.ts +1 -0
  165. package/esm/modern/util/redirect.d.ts +6 -0
  166. package/esm/modern/util/security-registry.d.ts +72 -0
  167. package/esm/modern/util/security.d.ts +55 -0
  168. package/esm/modern/util/spm-map.d.ts +217 -0
  169. package/esm/modern/util/storage.d.ts +2 -0
  170. package/esm/modern/util/timezone.d.ts +1 -0
  171. package/esm/modern/util/upgrade.d.ts +39 -0
  172. package/esm/modern/util/versionCompare.d.ts +15 -0
  173. package/esm/tsdoc-metadata.json +1 -1
  174. package/esm/types/index.d.ts +6 -0
  175. package/esm/util/logger.js +1 -1
  176. package/esm/util/timezone.d.ts +1 -0
  177. package/esm/util/timezone.js +8 -0
  178. package/package.json +2 -1
  179. package/types.d.ts +308 -13
  180. package/types.untrimmed.d.ts +343 -13
@@ -0,0 +1,7 @@
1
+ interface LoadAntomTrackingConfig {
2
+ env: string;
3
+ locale?: string;
4
+ debug?: boolean;
5
+ }
6
+ export declare function runTrackedLoadAntom<T>(config: LoadAntomTrackingConfig, action: () => Promise<T>): Promise<T>;
7
+ export {};
@@ -0,0 +1,64 @@
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
5
+ import { tracker as loaderTracker } from '@antglobal/create-sdk-loader/lib/tracker';
6
+ var getErrorCode = function getErrorCode(error) {
7
+ try {
8
+ var _value$error;
9
+ var value = error;
10
+ return (value === null || value === void 0 ? void 0 : value.code) || (value === null || value === void 0 || (_value$error = value.error) === null || _value$error === void 0 ? void 0 : _value$error.code) || 'UNKNOWN';
11
+ } catch (_unused) {
12
+ return 'UNKNOWN';
13
+ }
14
+ };
15
+ var reportLoadAntom = function reportLoadAntom(config, startedAt, outcome) {
16
+ var errorCode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
17
+ try {
18
+ loaderTracker.log({
19
+ code: '7882api',
20
+ msg: 'loadAntom',
21
+ d1: outcome,
22
+ d2: errorCode,
23
+ d3: '',
24
+ d4: '',
25
+ d5: 'loadAntom',
26
+ d6: config.env,
27
+ d7: String(config.locale !== undefined),
28
+ d8: config.debug === undefined ? '' : String(config.debug),
29
+ m1: Date.now() - startedAt
30
+ });
31
+ } catch (_unused2) {
32
+ // Loader diagnostics must never affect SDK loading.
33
+ }
34
+ };
35
+ export function runTrackedLoadAntom(_x, _x2) {
36
+ return _runTrackedLoadAntom.apply(this, arguments);
37
+ }
38
+ function _runTrackedLoadAntom() {
39
+ _runTrackedLoadAntom = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(config, action) {
40
+ var startedAt, result;
41
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
42
+ while (1) switch (_context.prev = _context.next) {
43
+ case 0:
44
+ startedAt = Date.now();
45
+ _context.prev = 1;
46
+ _context.next = 4;
47
+ return action();
48
+ case 4:
49
+ result = _context.sent;
50
+ reportLoadAntom(config, startedAt, 'success');
51
+ return _context.abrupt("return", result);
52
+ case 9:
53
+ _context.prev = 9;
54
+ _context.t0 = _context["catch"](1);
55
+ reportLoadAntom(config, startedAt, 'error', getErrorCode(_context.t0));
56
+ throw _context.t0;
57
+ case 13:
58
+ case "end":
59
+ return _context.stop();
60
+ }
61
+ }, _callee, null, [[1, 9]]);
62
+ }));
63
+ return _runTrackedLoadAntom.apply(this, arguments);
64
+ }
@@ -0,0 +1,36 @@
1
+ import type { AMSCashierPayment, AMSEasyPay, AMSElement } from '../main';
2
+ declare global {
3
+ interface Window {
4
+ AMSCashierPayment?: typeof AMSCashierPayment;
5
+ AMSElement?: typeof AMSElement;
6
+ AMSEasyPay?: typeof AMSEasyPay;
7
+ }
8
+ }
9
+ /**
10
+ * 产品类型
11
+ */
12
+ export type ProductType = AMSCashierPayment | AMSEasyPay | AMSElement;
13
+ /**
14
+ * 产品构造函数
15
+ */
16
+ export type ProductConstructor = typeof AMSCashierPayment | typeof AMSEasyPay | typeof AMSElement;
17
+ /**
18
+ * 产品构造函数名称枚举
19
+ */
20
+ export declare enum EConstructorName {
21
+ AMSCashierPayment = "AMSCashierPayment",
22
+ AMSEasyPay = "AMSEasyPay",
23
+ AMSElement = "AMSElement"
24
+ }
25
+ export declare const instanceApiMap: Record<EConstructorName, string[]>;
26
+ /**
27
+ * SDK 集成类型枚举
28
+ */
29
+ export type AntomWebSDKIntegrationType = 'CDN' | 'NPM';
30
+ /**
31
+ * SDK 地址
32
+ */
33
+ export declare const SDK_URL: {
34
+ DEV: string;
35
+ PROD: string;
36
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * 在window对象上记录商户初始化SDK的StartTime,加载结束时间
3
+ * 后续传递给Web应用,用于进行端到端渲染总耗时计算
4
+ * ***/
5
+ import { ProductSceneEnum } from "../../types";
6
+ import { EConstructorName } from '../constant';
7
+ type TimeObject = {
8
+ startTime: number;
9
+ endTime: number;
10
+ };
11
+ /*** 扩展 Window 接口,添加 _ANTOM_SDK_PROXY_TIME 属性*/
12
+ declare global {
13
+ interface Window {
14
+ _ANTOM_SDK_PROXY_TIME?: Partial<Record<EConstructorName, TimeObject>>;
15
+ }
16
+ }
17
+ export declare function setProxyStartTime(constructorName: EConstructorName, startTime: number): number;
18
+ export declare function setProxyEndTime(constructorName: EConstructorName, endTime: number): number;
19
+ export declare const getProxyCostTime: (productScene: ProductSceneEnum) => number;
20
+ export {};
@@ -0,0 +1,54 @@
1
+ import { AddressComponent } from './core/component/address';
2
+ import { ElementComponent } from './core/component/element';
3
+ import { AMSComponent } from './core/component/index';
4
+ import { ComponentSignEnum, IcreateComponent, IElementOptions, IoptionsAddressParams, IoptionsParams, IPreloadOptions, ValidationResult } from './types';
5
+ export { AMSCheckoutPage } from './core/component/ckp';
6
+ export * from './types';
7
+ export declare class AMSCheckout extends AMSComponent {
8
+ constructor(_options: IoptionsParams, channelType?: ComponentSignEnum[], productSceneVersion?: string);
9
+ }
10
+ export declare class AMSAutoDebitPay extends AMSCheckout {
11
+ constructor(options: IoptionsParams);
12
+ static preload(options?: IPreloadOptions): void;
13
+ }
14
+ export declare class AMSCashierPayment extends AMSCheckout {
15
+ constructor(options: IoptionsParams);
16
+ static preload(options?: IPreloadOptions): void;
17
+ /**
18
+ * Form validation function
19
+ * If the form is currently displayed:
20
+ * - Successful validation: isValid is true
21
+ * - Failed validation: isValid is false, and error messages are displayed on the form page
22
+ * If not on the form display page, isValid returns false
23
+ * @returns {Promise<ValidationResult>} Returns a Promise containing the validation result
24
+ */
25
+ validateFields(): Promise<ValidationResult>;
26
+ }
27
+ export declare class AMSVaulting extends AMSCheckout {
28
+ constructor(options: IoptionsParams);
29
+ static preload(options?: IPreloadOptions): void;
30
+ }
31
+ export declare class AntomElement extends AMSCheckout {
32
+ constructor(options: IoptionsParams);
33
+ }
34
+ export declare class AddressElement extends AddressComponent {
35
+ constructor(options: IoptionsAddressParams);
36
+ }
37
+ export declare class AMSElement extends ElementComponent {
38
+ constructor(options: IElementOptions);
39
+ }
40
+ export declare class AMSEasyPay {
41
+ private core;
42
+ constructor(options: IoptionsParams);
43
+ static preload(options?: IPreloadOptions): void;
44
+ createComponent(params: IcreateComponent): void;
45
+ unmount(): void;
46
+ }
47
+ export declare class AMSAutoDebit {
48
+ private core;
49
+ constructor(options: IoptionsParams);
50
+ createComponent(params: IcreateComponent): Promise<void>;
51
+ unmount(): void;
52
+ static preload(options?: IPreloadOptions): void;
53
+ }
54
+ export default AMSCheckout;
@@ -1,4 +1,4 @@
1
- import type { AntomSDK, LoadAntomConfig, ShippingInfo } from "../../types";
1
+ import type { AntomSDK, LoadAntomConfig, ShippingInfo } from "../../../types";
2
2
  /**
3
3
  * @description load Antom instance
4
4
  */
@@ -0,0 +1,7 @@
1
+ interface LoadAntomTrackingConfig {
2
+ env: string;
3
+ locale?: string;
4
+ debug?: boolean;
5
+ }
6
+ export declare function runTrackedLoadAntom<T>(config: LoadAntomTrackingConfig, action: () => Promise<T>): Promise<T>;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type PreloadManifest, type PreloadPlan, type ResourceRule } from '@antintl/opensdk-preload';
2
+ import { type AntomPreloadElement } from './config';
3
+ interface ResolveAntomPreloadPlanOptions {
4
+ elements: readonly AntomPreloadElement[];
5
+ manifestUrl: string;
6
+ resourceRules: readonly ResourceRule[];
7
+ requireHttps: boolean;
8
+ }
9
+ export declare function resolveAntomPreloadPlan(options: ResolveAntomPreloadPlanOptions): Promise<PreloadPlan>;
10
+ export declare function adaptAntomManifest(manifest: PreloadManifest, elements: readonly AntomPreloadElement[], options: Pick<ResolveAntomPreloadPlanOptions, 'resourceRules' | 'requireHttps'>): PreloadPlan;
11
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ResourceRule } from '@antintl/opensdk-preload/types';
2
+ export declare const ANTOM_PRELOAD_MANIFEST = "/elements2/manifest.json";
3
+ export declare const ANTOM_PRELOAD_ELEMENTS: readonly ["payment", "express", "vaulting", "CVV"];
4
+ export type AntomPreloadElement = (typeof ANTOM_PRELOAD_ELEMENTS)[number];
5
+ export declare function getAntomPreloadRuntimeConfig(): {
6
+ manifestUrl: string;
7
+ runnerUrl: string;
8
+ resourceRules: ResourceRule[];
9
+ requireHttps: boolean;
10
+ };
@@ -0,0 +1,53 @@
1
+ declare const PRECONNECTION_REGIONS: readonly ["SG", "US", "DE"];
2
+ export type PreconnectionRegion = (typeof PRECONNECTION_REGIONS)[number];
3
+ export type GatewayPreconnectionStatus = 'running' | 'completed' | 'partial_failed' | 'failed';
4
+ type RegionResult = {
5
+ status: 'completed' | 'failed';
6
+ endTime: number;
7
+ };
8
+ export interface GatewayPreconnectionSnapshot {
9
+ mode: 'configured' | 'regional';
10
+ preconnectedRegions: readonly PreconnectionRegion[];
11
+ failedRegions: PreconnectionRegion[];
12
+ regionResults: Partial<Record<PreconnectionRegion, RegionResult>>;
13
+ gatewayUrl?: string;
14
+ actualRegion?: string;
15
+ predictionResult?: 'hit' | 'miss';
16
+ status: GatewayPreconnectionStatus;
17
+ preconnectionStartTime: number;
18
+ preconnectionEndTime?: number;
19
+ firstRpcStartTime?: number;
20
+ firstRpcEndTime?: number;
21
+ firstRpcTotalMs?: number;
22
+ preconnectionLeadTimeMs?: number;
23
+ preconnectionReadyBeforeFirstRpc?: boolean;
24
+ dnsDurationMs?: number;
25
+ tcpDurationMs?: number;
26
+ tlsDurationMs?: number;
27
+ }
28
+ export declare function startGatewayPreconnection(env: 'sandbox' | 'prod'): Promise<GatewayPreconnectionSnapshot>;
29
+ export declare function recordActualRegion(region: string, env?: 'sandbox' | 'prod'): GatewayPreconnectionSnapshot | undefined;
30
+ export declare function recordFirstRpcStart(env?: 'sandbox' | 'prod'): GatewayPreconnectionSnapshot | undefined;
31
+ export declare function recordFirstRpcEnd(env?: 'sandbox' | 'prod'): GatewayPreconnectionSnapshot | undefined;
32
+ export declare function getGatewayPreconnectionSnapshot(env?: 'sandbox' | 'prod'): {
33
+ mode: "configured" | "regional";
34
+ preconnectedRegions: readonly PreconnectionRegion[];
35
+ failedRegions: PreconnectionRegion[];
36
+ regionResults: Partial<Record<PreconnectionRegion, RegionResult>>;
37
+ gatewayUrl?: string;
38
+ actualRegion?: string;
39
+ predictionResult?: "hit" | "miss";
40
+ status: GatewayPreconnectionStatus;
41
+ preconnectionStartTime: number;
42
+ preconnectionEndTime?: number;
43
+ firstRpcStartTime?: number;
44
+ firstRpcEndTime?: number;
45
+ firstRpcTotalMs?: number;
46
+ preconnectionLeadTimeMs?: number;
47
+ preconnectionReadyBeforeFirstRpc?: boolean;
48
+ dnsDurationMs?: number;
49
+ tcpDurationMs?: number;
50
+ tlsDurationMs?: number;
51
+ };
52
+ export declare function waitForGatewayPreconnection(env?: 'sandbox' | 'prod'): Promise<GatewayPreconnectionSnapshot>;
53
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { AntomPreloadElement } from './config';
2
+ export declare function preloadAntomElements(elements: readonly AntomPreloadElement[]): Promise<void>;
3
+ export declare function getAntomPreloadTelemetry(element: AntomPreloadElement): {
4
+ requested: boolean;
5
+ phaseAtElementCreate: "running" | "failed" | "resolving" | "critical_completed" | "skipped" | "not_requested";
6
+ leadTimeMs: number;
7
+ criticalDurationMs: number;
8
+ criticalTotal: number;
9
+ criticalSuccess: number;
10
+ criticalFailed: number;
11
+ taskId: string;
12
+ };
@@ -0,0 +1,2 @@
1
+ import type { AntomPreloadElement } from './config';
2
+ export declare function startAntomPreload(env: 'sandbox' | 'prod', elements?: readonly AntomPreloadElement[]): void;
@@ -0,0 +1,102 @@
1
+ declare global {
2
+ interface Window {
3
+ ApplePaySession?: any;
4
+ }
5
+ }
6
+ export interface ApplePayHostPaymentRequest {
7
+ countryCode: string;
8
+ currencyCode: string;
9
+ merchantCapabilities: string[];
10
+ supportedNetworks: string[];
11
+ requiredBillingContactFields?: string[];
12
+ requiredShippingContactFields?: string[];
13
+ total: {
14
+ type: string;
15
+ label: string;
16
+ amount: string;
17
+ };
18
+ version: number;
19
+ lineItems?: any[];
20
+ recurringPaymentRequest?: any;
21
+ }
22
+ export interface ApplePayHostAuthorizedEvent {
23
+ token: any;
24
+ billingContact?: any;
25
+ shippingContact?: any;
26
+ }
27
+ export interface ApplePayHostAuthorizedResult {
28
+ /** true = ApplePaySession.completePayment(STATUS_SUCCESS),false = STATUS_FAILURE */
29
+ success: boolean;
30
+ /** 业务返回(由调用方在外部使用) */
31
+ result?: any;
32
+ /** 失败时的错误码 / 提示(由调用方决定如何上抛) */
33
+ errorCode?: string;
34
+ errorMessage?: string;
35
+ }
36
+ export interface ApplePayHostServiceCallbacks {
37
+ /**
38
+ * 商户验证:onvalidatemerchant 触发,调用商户验证 API,返回 merchantSession 对象(
39
+ * 已 parse 的 object;若调用方拿到的是 JSON string,自行 parse 后再 resolve)
40
+ * reject 时 ApplePayHostService 会 session.abort() 并 reject startPay Promise
41
+ */
42
+ validateMerchant: (validationURL: string) => Promise<any>;
43
+ /**
44
+ * 用户授权完成:拿到 token + billing/shipping 后调商户的提交逻辑,返回结果
45
+ * 成功 → ApplePayHostService 调 completePayment(STATUS_SUCCESS) 并 resolve startPay Promise
46
+ * 失败 → ApplePayHostService 调 completePayment(STATUS_FAILURE) 并 reject startPay Promise
47
+ * 抛异常 → 视同失败
48
+ */
49
+ onAuthorized: (event: ApplePayHostAuthorizedEvent) => Promise<ApplePayHostAuthorizedResult>;
50
+ }
51
+ export interface ApplePayHostServiceOptions {
52
+ /** Apple Pay sheet 请求参数;字段校验在 startPay 入口做 */
53
+ paymentRequest: ApplePayHostPaymentRequest;
54
+ /** Callbacks 集合 */
55
+ callbacks: ApplePayHostServiceCallbacks;
56
+ /**
57
+ * 是否开启 modal close shadow DOM listener(国内非标方案监听 .modal-close-button 点击)
58
+ * 普通 elements2 路径开启;Express 路径默认不开启(原 _handleApplePayAtHost 没用)
59
+ */
60
+ enableModalCloseListener?: boolean;
61
+ }
62
+ export declare class ApplePayHostService {
63
+ private opts;
64
+ private session;
65
+ private settled;
66
+ /** session 生命周期阶段 */
67
+ private phase;
68
+ /**
69
+ * oncancel 原因标记:区分商户通过 onBeforeConfirm 中止 vs 其他。
70
+ * - null: 默认(非商户中止,即用户取消或其他原因)
71
+ * - 'MERCHANT_ABORT': 商户 onBeforeConfirm 返回 false 或异常导致中止
72
+ * - 'MERCHANT_TIMEOUT': 商户 onBeforeConfirm 超时导致中止
73
+ */
74
+ private cancelReason;
75
+ private modalCloseHandler;
76
+ /**
77
+ * 实例级并发守卫:startPay 进行中时,再次调用复用同一个 Promise 而非新建,
78
+ * 避免覆盖共享 session/settled 导致 Promise 永久 pending。null 表示当前无进行中流程。
79
+ */
80
+ private _activePay;
81
+ constructor(opts: ApplePayHostServiceOptions);
82
+ /**
83
+ * 启动 Apple Pay 流程。Promise 完成时机:
84
+ * - resolve():onAuthorized 返回 success=true,completePayment(SUCCESS) 已调
85
+ * - reject(err):onAuthorized 返回 success=false / 抛异常 / SDK 加载失败 / new session 失败 /
86
+ * oncancel / validateMerchant 失败
87
+ */
88
+ startPay(): Promise<void>;
89
+ private _startPayInternal;
90
+ /**
91
+ * 构造 ApplePaySession 入参:从 paymentRequest 取字段,recurringPaymentRequest 若有则带上。
92
+ */
93
+ private buildSessionParams;
94
+ private safeAbort;
95
+ private safeComplete;
96
+ /**
97
+ * 监听 apple-pay-modal 的 close button(shadow DOM,国内非标方案)。
98
+ * 来源:原 ApplePaySdk.addEventListener(plugin/component/channel.ts:528-542)。
99
+ */
100
+ private attachModalCloseListener;
101
+ private clearModalCloseListener;
102
+ }
@@ -0,0 +1,144 @@
1
+ import { type RequestOptions } from '@antintl/antom-toolset';
2
+ import { type FontSource } from '@antintl/opensdk-bridge';
3
+ import { type BaseElementAppConfig, type BaseElementConfig, BaseMainElement } from '@antintl/opensdk-core';
4
+ import type { CashierSdkActionQueryResult, PaymentSessionConfig } from '../oneapi/iexpfront/definitions';
5
+ import { type AntomBridgeEventMap, type AntomTheme, type AntomVariables, type AppearanceVariables, type PreloadTelemetryContext } from '../types';
6
+ import { type AppearanceRuleSelector, type PickAntomAppearance } from './appearanceRules';
7
+ export type CVVAppearanceProps = {
8
+ theme: AntomTheme;
9
+ variables: AppearanceVariables | AntomVariables;
10
+ fonts?: FontSource[];
11
+ rules: AppearanceRuleSelector<string>;
12
+ };
13
+ export type CVVAppearance = PickAntomAppearance<CVVAppearanceProps>;
14
+ /**
15
+ * @public
16
+ * @description CVV element app config type
17
+ */
18
+ export interface CVVAppConfig extends BaseElementAppConfig {
19
+ /** CVV appearance configuration including optional alias-only Rules. */
20
+ appearance?: CVVAppearance;
21
+ /**
22
+ * @description 创建时必填的支付会话;不可通过 updateConfig 或 submit 替换
23
+ */
24
+ sessionData: string;
25
+ /**
26
+ * @internal sessionConfig 渲染数据,内部使用,无需用户传递
27
+ */
28
+ paymentSessionConfig?: PaymentSessionConfig;
29
+ /**
30
+ * @internal 渲染数据,内部使用,无需用户传递
31
+ */
32
+ renderData?: CashierSdkActionQueryResult;
33
+ /**
34
+ * @internal sdk 版本号,内部使用,无需用户传递
35
+ */
36
+ sdkVersion?: string;
37
+ /**
38
+ * @internal 内部联调使用,生产环境传递无效
39
+ */
40
+ _requestConfig?: Partial<Omit<RequestOptions, 'scope' | 'tracker'>>;
41
+ /** @internal Elements2 preload grouping data. */
42
+ preloadTelemetryContext?: PreloadTelemetryContext;
43
+ /**
44
+ * @description 语言配置
45
+ */
46
+ locale?: string;
47
+ /**
48
+ * 支付流程类型
49
+ * - 'automatic':无 UI,页面挂载后自动提交(无UI支付)
50
+ * - 'cvv':有 UI,展示 CVV 输入框,由用户手动输入后提交
51
+ * @internal paymentFlow 内部使用,无需用户传递
52
+ */
53
+ paymentFlow?: 'automatic' | 'cvv';
54
+ }
55
+ export type CVVSubmitErrorCodes = 'NOT_FIND_MAINELEMENT' | 'SESSION_DATA_INVALID' | 'SDK_LAUNCH_PAYMENT_APP_ERROR' | string;
56
+ /**
57
+ * @description CVV 支付错误结果
58
+ */
59
+ export interface CVVSubmitError {
60
+ /**
61
+ * 是否成功
62
+ */
63
+ success: false;
64
+ /**
65
+ * 错误信息
66
+ */
67
+ error: {
68
+ /**
69
+ * 错误码
70
+ */
71
+ code: string;
72
+ /**
73
+ * 错误信息
74
+ */
75
+ message: string;
76
+ /**
77
+ * 错误类型
78
+ */
79
+ type?: string;
80
+ /**
81
+ * 错误详情
82
+ */
83
+ detail?: any;
84
+ };
85
+ }
86
+ /**
87
+ * @description CVV 支付提交参数
88
+ */
89
+ export interface CVVSubmitParams {
90
+ /**
91
+ * 重定向策略
92
+ */
93
+ redirect?: 'always' | 'if_required';
94
+ /**
95
+ * 集成用户自定义信息(如 cardHolderName)
96
+ */
97
+ params?: Record<string, unknown>;
98
+ }
99
+ export interface CVVElementEvents extends AntomBridgeEventMap<CVVAppConfig, CVVSubmitParams & Pick<CVVAppConfig, 'sessionData'>> {
100
+ /**
101
+ * @description Emitted when the element is destroy
102
+ */
103
+ destroy: void;
104
+ }
105
+ /**
106
+ * @public
107
+ * @description CVV element config type
108
+ */
109
+ export interface CVVElementConfig extends BaseElementConfig<CVVAppConfig> {
110
+ appConfig: CVVAppConfig;
111
+ }
112
+ /**
113
+ * @description CVV element
114
+ */
115
+ export declare class CVVElement extends BaseMainElement<CVVElementConfig, CVVElementEvents> {
116
+ static elementType: string;
117
+ private readonly sessionData;
118
+ private readonly elementTracker;
119
+ private _mountInProgress;
120
+ private _destroyInProgress;
121
+ constructor(name: string, config: CVVElementConfig);
122
+ /**
123
+ * @internal
124
+ */
125
+ setup(): Promise<Partial<CVVAppConfig> | undefined>;
126
+ /**
127
+ * @internal Not supported by the public CVV integration API.
128
+ * Updates appearance only, preserving the Rules clear semantics.
129
+ * @param newConfig Appearance configuration patch.
130
+ * @returns The WebApp update acknowledgement.
131
+ */
132
+ updateConfig(newConfig: Pick<CVVAppConfig, 'appearance'>): Promise<CVVElementEvents['OPENSDK@UPDATE_CONFIG_REPLY']>;
133
+ /**
134
+ * @internal
135
+ */
136
+ submit(data?: CVVSubmitParams): Promise<import("../types").SubmitResult>;
137
+ mount(container: HTMLElement): Promise<void>;
138
+ on<T extends keyof CVVElementEvents>(event: T, handler: (payload: CVVElementEvents[T]) => void): void;
139
+ unmount(): void;
140
+ destroy(): void;
141
+ protected focus(): void;
142
+ protected blur(): void;
143
+ protected clear(): void;
144
+ }