sample-cross-fx 0.15.0 → 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.
@@ -60487,21 +60487,15 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
60487
60487
  super(...arguments);
60488
60488
  this.locals = {};
60489
60489
 
60490
- this.handler = ev => {
60491
- const {
60492
- innerProps
60493
- } = this.props;
60494
- ev.stopPropagation();
60495
- innerProps.piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
60496
- };
60497
-
60498
60490
  this.setNode = node => {
60499
60491
  this.current = node;
60500
60492
  };
60501
60493
  }
60502
60494
 
60503
60495
  componentDidMount() {
60504
- const node = this.current;
60496
+ const {
60497
+ current
60498
+ } = this;
60505
60499
  const {
60506
60500
  $component,
60507
60501
  $context,
@@ -60511,12 +60505,11 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
60511
60505
  mount
60512
60506
  } = $component;
60513
60507
 
60514
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
60515
- mount(node, innerProps, $context, this.locals);
60516
- node.addEventListener('render-html', this.handler, false);
60508
+ if (current && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
60509
+ mount(current, innerProps, $context, this.locals);
60517
60510
  }
60518
60511
 
60519
- this.previous = node;
60512
+ this.previous = current;
60520
60513
  }
60521
60514
 
60522
60515
  componentDidUpdate() {
@@ -60542,7 +60535,9 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
60542
60535
  }
60543
60536
 
60544
60537
  componentWillUnmount() {
60545
- const node = this.previous;
60538
+ const {
60539
+ previous
60540
+ } = this;
60546
60541
  const {
60547
60542
  $component
60548
60543
  } = this.props;
@@ -60550,9 +60545,8 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
60550
60545
  unmount
60551
60546
  } = $component;
60552
60547
 
60553
- if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
60554
- unmount(node, this.locals);
60555
- node.removeEventListener('render-html', this.handler, false);
60548
+ if (previous && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
60549
+ unmount(previous, this.locals);
60556
60550
  }
60557
60551
 
60558
60552
  this.previous = undefined;
@@ -63711,12 +63705,12 @@ function installPiralDebug(options) {
63711
63705
  debug: debugApiVersion,
63712
63706
  instance: {
63713
63707
  name: "sample-cross-fx",
63714
- version: "0.15.0",
63708
+ version: "0.15.1-beta.4906",
63715
63709
  dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
63716
63710
  },
63717
63711
  build: {
63718
- date: "2022-11-17T00:44:24.595Z",
63719
- cli: "0.15.0",
63712
+ date: "2022-11-24T14:27:00.496Z",
63713
+ cli: "0.15.1-beta.4906",
63720
63714
  compat: "0.15"
63721
63715
  }
63722
63716
  };
@@ -216353,4 +216347,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
216353
216347
 
216354
216348
  /******/ })()
216355
216349
  ;
216356
- //# sourceMappingURL=index.8d791b.js.map
216350
+ //# sourceMappingURL=index.0b6838.js.map