minimal-piral 0.15.1-beta.4903 → 0.15.1-beta.4908

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.
@@ -3506,12 +3506,6 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3506
3506
  _this = _super.apply(this, arguments);
3507
3507
  _this.locals = {};
3508
3508
 
3509
- _this.handler = function (ev) {
3510
- var innerProps = _this.props.innerProps;
3511
- ev.stopPropagation();
3512
- innerProps.piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
3513
- };
3514
-
3515
3509
  _this.setNode = function (node) {
3516
3510
  _this.current = node;
3517
3511
  };
@@ -3522,19 +3516,18 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3522
3516
  _createClass(ForeignComponentContainer, [{
3523
3517
  key: "componentDidMount",
3524
3518
  value: function componentDidMount() {
3525
- var node = this.current;
3519
+ var current = this.current;
3526
3520
  var _this$props = this.props,
3527
3521
  $component = _this$props.$component,
3528
3522
  $context = _this$props.$context,
3529
3523
  innerProps = _this$props.innerProps;
3530
3524
  var mount = $component.mount;
3531
3525
 
3532
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
3533
- mount(node, innerProps, $context, this.locals);
3534
- node.addEventListener('render-html', this.handler, false);
3526
+ if (current && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
3527
+ mount(current, innerProps, $context, this.locals);
3535
3528
  }
3536
3529
 
3537
- this.previous = node;
3530
+ this.previous = current;
3538
3531
  }
3539
3532
  }, {
3540
3533
  key: "componentDidUpdate",
@@ -3557,13 +3550,12 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3557
3550
  }, {
3558
3551
  key: "componentWillUnmount",
3559
3552
  value: function componentWillUnmount() {
3560
- var node = this.previous;
3553
+ var previous = this.previous;
3561
3554
  var $component = this.props.$component;
3562
3555
  var unmount = $component.unmount;
3563
3556
 
3564
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
3565
- unmount(node, this.locals);
3566
- node.removeEventListener('render-html', this.handler, false);
3557
+ if (previous && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
3558
+ unmount(previous, this.locals);
3567
3559
  }
3568
3560
 
3569
3561
  this.previous = undefined;
@@ -6646,12 +6638,12 @@ function installPiralDebug(options) {
6646
6638
  debug: debugApiVersion,
6647
6639
  instance: {
6648
6640
  name: "minimal-piral",
6649
- version: "0.15.1-beta.4903",
6641
+ version: "0.15.1-beta.4908",
6650
6642
  dependencies: "tslib,react,react-dom,react-router,react-router-dom"
6651
6643
  },
6652
6644
  build: {
6653
- date: "2022-11-23T23:35:36.524Z",
6654
- cli: "0.15.1-beta.4903",
6645
+ date: "2022-11-24T23:46:17.354Z",
6646
+ cli: "0.15.1-beta.4908",
6655
6647
  compat: "0.15"
6656
6648
  }
6657
6649
  };
@@ -45591,4 +45583,4 @@ var instance = (0,piral_core__WEBPACK_IMPORTED_MODULE_2__.createInstance)({
45591
45583
 
45592
45584
  /******/ })()
45593
45585
  ;
45594
- //# sourceMappingURL=index.b7146f.js.map
45586
+ //# sourceMappingURL=index.5a7c95.js.map