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.
- package/app/{index.6d9694.js → index.032f63.js} +11 -19
- package/app/index.032f63.js.map +1 -0
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +7 -7
- package/app/index.6d9694.js.map +0 -1
|
@@ -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
|
|
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 (
|
|
3765
|
-
mount(
|
|
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 =
|
|
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
|
|
3785
|
+
var previous = this.previous;
|
|
3793
3786
|
var $component = this.props.$component;
|
|
3794
3787
|
var unmount = $component.unmount;
|
|
3795
3788
|
|
|
3796
|
-
if (
|
|
3797
|
-
unmount(
|
|
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.
|
|
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-
|
|
9612
|
-
cli: "0.15.1-beta.
|
|
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.
|
|
66368
|
+
//# sourceMappingURL=index.032f63.js.map
|