@alipay/ams-checkout 0.0.1730706734-dev.3 → 0.0.1730706734-dev.5

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.
@@ -22,6 +22,7 @@ import { parseSessionData } from "../index";
22
22
  import { ElementAddressComponent } from "./components/address";
23
23
  import { ElementAuthComponent } from "./components/auth";
24
24
  import { ElementPaymentComponent } from "./components/payment";
25
+ import { EVENT as ConstantEvent } from "../../../constant";
25
26
  // import { oneAccount, sdkAction } from './mock';
26
27
 
27
28
  import { addressTheme, ELEMENT_ENVIRONMENT, ThemeType } from "./type";
@@ -549,6 +550,9 @@ export var ElementComponent = /*#__PURE__*/function () {
549
550
  (_this6$eventCallback$ = (_this6$eventCallback$2 = _this6.eventCallback[result.source])[result.event]) === null || _this6$eventCallback$ === void 0 || _this6$eventCallback$.call(_this6$eventCallback$2, result.data);
550
551
  }
551
552
  });
553
+ this.eventService.listen(ConstantEvent.close.name, function () {
554
+ _this6.unmount();
555
+ });
552
556
  this.eventService.listen(ElementPaymentEvent.LOG, function (result) {
553
557
  console.log('antom sdk 组件日志回调');
554
558
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1730706734-dev.3",
3
+ "version": "0.0.1730706734-dev.5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",