sample-piral 0.15.1-beta.4903 → 0.15.1-beta.4906

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.
@@ -3738,12 +3738,6 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3738
3738
  _this = _super.apply(this, arguments);
3739
3739
  _this.locals = {};
3740
3740
 
3741
- _this.handler = function (ev) {
3742
- var innerProps = _this.props.innerProps;
3743
- ev.stopPropagation();
3744
- innerProps.piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
3745
- };
3746
-
3747
3741
  _this.setNode = function (node) {
3748
3742
  _this.current = node;
3749
3743
  };
@@ -3754,19 +3748,18 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3754
3748
  _createClass(ForeignComponentContainer, [{
3755
3749
  key: "componentDidMount",
3756
3750
  value: function componentDidMount() {
3757
- var node = this.current;
3751
+ var current = this.current;
3758
3752
  var _this$props = this.props,
3759
3753
  $component = _this$props.$component,
3760
3754
  $context = _this$props.$context,
3761
3755
  innerProps = _this$props.innerProps;
3762
3756
  var mount = $component.mount;
3763
3757
 
3764
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
3765
- mount(node, innerProps, $context, this.locals);
3766
- node.addEventListener('render-html', this.handler, false);
3758
+ if (current && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
3759
+ mount(current, innerProps, $context, this.locals);
3767
3760
  }
3768
3761
 
3769
- this.previous = node;
3762
+ this.previous = current;
3770
3763
  }
3771
3764
  }, {
3772
3765
  key: "componentDidUpdate",
@@ -3789,13 +3782,12 @@ var ForeignComponentContainer = /*#__PURE__*/function (_React$Component) {
3789
3782
  }, {
3790
3783
  key: "componentWillUnmount",
3791
3784
  value: function componentWillUnmount() {
3792
- var node = this.previous;
3785
+ var previous = this.previous;
3793
3786
  var $component = this.props.$component;
3794
3787
  var unmount = $component.unmount;
3795
3788
 
3796
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
3797
- unmount(node, this.locals);
3798
- node.removeEventListener('render-html', this.handler, false);
3789
+ if (previous && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
3790
+ unmount(previous, this.locals);
3799
3791
  }
3800
3792
 
3801
3793
  this.previous = undefined;
@@ -9604,12 +9596,12 @@ function installPiralDebug(options) {
9604
9596
  debug: debugApiVersion,
9605
9597
  instance: {
9606
9598
  name: "sample-piral",
9607
- version: "0.15.1-beta.4903",
9599
+ version: "0.15.1-beta.4906",
9608
9600
  dependencies: "reactstrap,tslib,react,react-dom,react-router,react-router-dom"
9609
9601
  },
9610
9602
  build: {
9611
- date: "2022-11-23T23:35:40.666Z",
9612
- cli: "0.15.1-beta.4903",
9603
+ date: "2022-11-24T14:26:28.519Z",
9604
+ cli: "0.15.1-beta.4906",
9613
9605
  compat: "0.15"
9614
9606
  }
9615
9607
  };
@@ -66373,4 +66365,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__.createElement(piral
66373
66365
 
66374
66366
  /******/ })()
66375
66367
  ;
66376
- //# sourceMappingURL=index.6d9694.js.map
66368
+ //# sourceMappingURL=index.032f63.js.map